build: fetch public Barkfile parser module
This commit is contained in:
@@ -52,8 +52,6 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
secrets: |
|
||||
gitea_credentials=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
|
||||
tags: |
|
||||
${{ env.REGISTRY_HOST }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ env.REGISTRY_HOST }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.sha_short }}
|
||||
|
||||
@@ -3,11 +3,7 @@ FROM golang:1.24-alpine AS build
|
||||
WORKDIR /src
|
||||
RUN apk add --no-cache git
|
||||
COPY go.mod go.sum ./
|
||||
RUN --mount=type=secret,id=gitea_credentials \
|
||||
credentials="$(cat /run/secrets/gitea_credentials)" && \
|
||||
git config --global url."https://${credentials}@cloud.campbellwireless.net/git/".insteadOf "https://cloud.campbellwireless.net/git/" && \
|
||||
GOPRIVATE=cloud.campbellwireless.net go mod download && \
|
||||
git config --global --unset-all url."https://${credentials}@cloud.campbellwireless.net/git/".insteadOf
|
||||
RUN go mod download
|
||||
COPY cmd ./cmd
|
||||
COPY internal ./internal
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /pawsql ./cmd/pawsql
|
||||
|
||||
Reference in New Issue
Block a user