fix
Some checks failed
/ Make image (push) Failing after 23s

This commit is contained in:
nquidox 2026-04-05 20:21:16 +03:00
parent a5aec1fca3
commit 8cf8ff70d7
2 changed files with 4 additions and 5 deletions

View file

@ -33,6 +33,7 @@ jobs:
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Make image
env:
GIT_CREDENTIALS: https://${{ secrets.MAINTAINER_USERNAME }}:${{ secrets.MAINTAINER_TOKEN }}@repo.nqws.ru/
run: |
docker buildx build --platform linux/amd64 \

View file

@ -6,17 +6,15 @@ ENV GOPRIVATE=repo.nqws.ru/*
ENV GONOSUMDB=repo.nqws.ru/*
WORKDIR /app
COPY go.mod go.sum ./
RUN --mount=type=secret,id=netrc,dst=/root/.netrc,mode=0600 \
git config --global credential.helper 'store --file=/root/.netrc' && \
RUN --mount=type=secret,id=git_creds,dst=/root/.git-credentials,mode=0600 \
git config --global credential.helper store && \
go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o main "./cmd"
FROM alpine:3.23
RUN apk add --no-cache \