From cd9c75db373ec65ff49ad31978ed48c5e1e6b334 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 27 May 2024 13:01:11 -0400 Subject: [PATCH] push to GHCR Push docker image to GHCR --- .github/workflows/build-release.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index d1900fbd1..77a9c7c9e 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -34,6 +34,12 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ env.REGISTRY_USERNAME }} password: ${{ env.REGISTRY_PASSWORD }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Prepare tags for Docker meta id: tags env: @@ -58,7 +64,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + ghcr.io/ellite/wallos tags: ${{ steps.tags.outputs.tags }} # necessary for multi-platform images - name: Set up QEMU @@ -82,4 +90,4 @@ jobs: with: args: "A new release has been created: ${{ steps.meta.outputs.tags }}" env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}