Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
context: services/api
platforms: linux/amd64,linux/arm64
push: true
build-args: |
PACA_VERSION=${{ github.event.release.tag_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
6 changes: 6 additions & 0 deletions services/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ RUN CGO_ENABLED=0 GOOS=linux GOMAXPROCS=1 GOMEMLIMIT=768MiB \
# ── Runtime stage ─────────────────────────────────────────────────────────────
FROM alpine:3.21

# Release tag this image was built from (e.g. "v1.2.3"), baked in by CD via
# --build-arg. Read at startup as PACA_VERSION; defaults to "dev" for local
# builds. See internal/config/load.go and internal/transport/http/handler/version_handler.go.
ARG PACA_VERSION=dev
ENV PACA_VERSION=$PACA_VERSION

RUN apk add --no-cache ca-certificates tzdata su-exec

# Create a dedicated non-root user and group for running the API
Expand Down
Loading