build: fetch public Barkfile parser module
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 5m15s
Test and Release PawSQL / test (push) Successful in 43s
Test and Release PawSQL / release (push) Successful in 8s

This commit is contained in:
2026-09-15 20:16:44 -04:00
parent ff3a3a71e5
commit c1f1362ea0
2 changed files with 1 additions and 7 deletions

View File

@@ -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 }}

View File

@@ -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