From 32a7f2cb1f319b4cacd85a9d4728e868638b2552 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sat, 6 Apr 2024 08:26:43 -0400 Subject: [PATCH] feat: add GHCR container images Signed-off-by: Devin Buhl --- .github/workflows/docker.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 54538d08..af599644 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -60,7 +60,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{matrix.image}} + images: | + docker.io/${{matrix.image}} + ghcr.io/${{matrix.image}} tags: | type=edge type=ref,event=branch @@ -85,6 +87,14 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Login to GitHub Container Registry + if: env.SHOULD_PUSH == 'true' + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push id: docker_build uses: docker/build-push-action@v5