From 1c112a8adc684723c4c8c6a4c10669d08d939b13 Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Sun, 9 Jun 2024 18:36:10 +0200 Subject: [PATCH] Set registry to ghcr.io --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c99808..6f7bde7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,9 @@ on: branches: - 'master' +env: + REGISTRY: ghcr.io + jobs: docker: runs-on: ubuntu-latest @@ -27,15 +30,14 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: ghcr.io + registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v5 - env: - SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE_DUMMY }} with: + registry: ghcr.io push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}