Skip to content

Commit

Permalink
chore: add multi-arch support and OCI labels
Browse files Browse the repository at this point in the history
- Added multi-architecture support for Docker images in the GitHub Actions workflow (`.github/workflows/release.yaml`).
- Added OCI labels for source and description in the Dockerfile.
  • Loading branch information
kitagry committed Jan 12, 2025
1 parent 7c4d812 commit a4aa237
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ WORKDIR /
COPY --from=builder /bin/manager .
USER nonroot:nonroot

LABEL org.opencontainers.image.source=https://github.com/kitagry/berglas-secret-controller
LABEL org.opencontainers.image.description="CustomController of k8s for berglas secret"

ENTRYPOINT ["/manager"]

0 comments on commit a4aa237

Please sign in to comment.