From af572d0683329ccab1bbcd6e8d31d481765d0bb8 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Tue, 14 Mar 2023 17:29:32 +0100 Subject: [PATCH] use GitHub Packages Container Registry instead of Docker Hub --- .github/workflows/build-image.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 32d8f2d0..319787e7 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -37,11 +37,12 @@ jobs: ;; esac - - name: Login to Docker Hub + - name: Login to registry uses: docker/login-action@v2 with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} if: github.event_name != 'pull_request' - name: Build and push @@ -54,4 +55,4 @@ jobs: context: . file: Containerfile push: ${{ github.event_name != 'pull_request' }} - tags: retrospring/retrospring:${{ env.RETROSPRING_VERSION }} + tags: ghcr.io/retrospring/retrospring:${{ env.RETROSPRING_VERSION }}