Skip to content

Commit

Permalink
Publish to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke committed Apr 11, 2024
1 parent 1da774d commit 6005244
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
label: debian12
runs-on: ubuntu-latest
permissions:
id-token: write # required for aws-actions/configure-aws-credentials
id-token: write # required for aws-actions/configure-aws-credentials
contents: read
packages: write # Required to push container images
steps:
- name: version
env:
Expand Down Expand Up @@ -59,6 +60,12 @@ jobs:
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build FPM Image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
Expand All @@ -67,4 +74,4 @@ jobs:
file: ${{ matrix.directory }}/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
public.ecr.aws/gravitational/fpm:${{ matrix.label }}-${{ env.V }}
public.ecr.aws/gravitational/fpm:${{ matrix.label }}-${{ env.V }},ghcr.io/gravitational/fpm:${{ matrix.label }}-${{ env.V }}

0 comments on commit 6005244

Please sign in to comment.