More CI fixes

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
maksim.nabokikh 2025-03-04 09:32:06 +01:00
parent 76faf8db73
commit 0d702c3538
9 changed files with 16 additions and 13 deletions

View File

@ -41,7 +41,7 @@ jobs:
source "$(werf ci-env github --as-file)"
source <(jq -r '.labels | to_entries | to_entries[] | "export WERF_EXPORT_ADD_LABEL_\(.key)=\"\(.value.key)=\(.value.value)\""' <<< $DOCKER_METADATA_OUTPUT_JSON)
werf build --repo='' --final-repo=''
werf build --repo='' --final-repo='' --secondary-repo "$WERF_REPO"
- name: Build and Push Image
if: ${{ github.event_name != 'pull_request' }}

View File

@ -20,7 +20,7 @@ jobs:
uses: wangyoucao577/go-release-action@v1.53
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: 1.17
goversion: 1.23
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: bash -ex ./build.sh

View File

@ -20,7 +20,7 @@ jobs:
uses: wangyoucao577/go-release-action@v1.53
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: 1.17
goversion: 1.23
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: bash -ex ./build_arm.sh

View File

@ -2,7 +2,7 @@ FROM node:16-alpine3.15 AS frontend-builder
COPY ../frontend /app
RUN apk add --update python3 make g++ && cd /app && npm install && npm run build
FROM golang:1.17.3-buster AS backend-builder
FROM golang:1.23.6-buster AS backend-builder
RUN go install github.com/gobuffalo/packr/v2/packr2@latest
COPY --from=frontend-builder /app/static /app/frontend/static
COPY .. /app

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "2.0.2"
description: Simple web UI to manage OpenVPN users, their certificates & routes in Linux. While backend is written in Go, frontend is based on Vue.js.
name: openvpn-admin
version: "0.0.2"
version: "0.0.3"
kubeVersion: ">=1.14.0-0"
maintainers:
- name: nabokihms

View File

@ -17,10 +17,10 @@ spec:
{{- end }}
tls:
- hosts:
- {{ .Values.domain }}
- {{ .Values.ingress.domain }}
secretName: ingress-tls
rules:
- host: {{ .Values.domain }}
- host: {{ .Values.ingress.domain }}
http:
paths:
- path: /

View File

@ -5,4 +5,4 @@ metadata:
name: basic-auth
type: Opaque
data:
auth: {{ print .Values.ovpnAdmin.basicAuth.user ":{PLAIN}" .Values.ovpnAdmin.basicAuth.password | b64enc | quote }}
auth: {{ print .Values.ingress.basicAuth.user ":{PLAIN}" .Values.ingress.basicAuth.password | b64enc | quote }}

View File

@ -1,9 +1,6 @@
domain: changeme
ovpnAdmin:
repo: ghcr.io/palark/ovpn-admin/ovpn-admin
basicAuth:
user: admin
password: changeme
openvpn:
repo: ghcr.io/palark/ovpn-admin/openvpn
subnet: 172.16.200.0/255.255.255.0
@ -37,3 +34,9 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
domain: changeme
basicAuth:
user: admin
password: changeme

2
go.mod
View File

@ -1,6 +1,6 @@
module ovpn-admin
go 1.17
go 1.23
require (
github.com/gobuffalo/packr/v2 v2.8.3