mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-16 13:26:15 -08:00
Disable buildah
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
parent
733abab0f9
commit
3f361ff566
2
.github/workflows/publish-tag.yaml
vendored
2
.github/workflows/publish-tag.yaml
vendored
@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
WERF_STAGED_DOCKERFILE_VERSION: v2
|
WERF_STAGED_DOCKERFILE_VERSION: v2
|
||||||
WERF_BUILDAH_MODE: auto
|
# WERF_BUILDAH_MODE: auto
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
FROM alpine:3.21
|
FROM alpine:3.21
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
RUN echo ${TARGETARCH}
|
|
||||||
RUN apk add --update bash openvpn easy-rsa iptables && \
|
RUN apk add --update bash openvpn easy-rsa iptables && \
|
||||||
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
||||||
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin && \
|
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin && \
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
FROM node:16-alpine3.15 AS frontend-builder
|
FROM node:16-alpine3.15 AS frontend-builder
|
||||||
COPY ../frontend /app
|
COPY ../frontend /app
|
||||||
RUN echo ${TARGETARCH}
|
|
||||||
RUN apk add --update python3 make g++ && cd /app && npm install && npm run build
|
RUN apk add --update python3 make g++ && cd /app && npm install && npm run build
|
||||||
|
|
||||||
FROM golang:1.23.6-bullseye AS backend-builder
|
FROM golang:1.23.6-bullseye AS backend-builder
|
||||||
@ -8,14 +7,12 @@ RUN go install github.com/gobuffalo/packr/v2/packr2@latest
|
|||||||
COPY --from=frontend-builder /app/static /app/frontend/static
|
COPY --from=frontend-builder /app/static /app/frontend/static
|
||||||
COPY .. /app
|
COPY .. /app
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
RUN echo ${TARGETARCH}
|
|
||||||
RUN cd /app && packr2 && env CGO_ENABLED=1 GOOS=linux GOARCH=${TARGETARCH} go build -a -tags netgo -ldflags '-linkmode external -extldflags -static -s -w' -o ovpn-admin && packr2 clean
|
RUN cd /app && packr2 && env CGO_ENABLED=1 GOOS=linux GOARCH=${TARGETARCH} go build -a -tags netgo -ldflags '-linkmode external -extldflags -static -s -w' -o ovpn-admin && packr2 clean
|
||||||
|
|
||||||
FROM alpine:3.21
|
FROM alpine:3.21
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=backend-builder /app/ovpn-admin /app
|
COPY --from=backend-builder /app/ovpn-admin /app
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
RUN echo ${TARGETARCH}
|
|
||||||
RUN apk add --update bash easy-rsa openssl openvpn coreutils && \
|
RUN apk add --update bash easy-rsa openssl openvpn coreutils && \
|
||||||
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
||||||
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin && \
|
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin && \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user