diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 1f9756e..60e85c6 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -22,10 +22,11 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Repository - uses: docker/login-action@v2 + uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_SECRET }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GHCR_PUSH_TOKEN }} - name: Build and push Container Image to GitHub Container Repository uses: docker/build-push-action@v3 diff --git a/.github/workflows/release-image.yml b/.github/workflows/release-image.yml index af2da2e..0cae0a4 100644 --- a/.github/workflows/release-image.yml +++ b/.github/workflows/release-image.yml @@ -17,10 +17,11 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Repository - uses: docker/login-action@v2 + uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_SECRET }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GHCR_PUSH_TOKEN }} - name: Build and push Container Image to GitHub Container Repository