From 99a2264199bbb99ccefccacb06d55dc15a4c5adc Mon Sep 17 00:00:00 2001 From: Harry Pidcock Date: Mon, 9 Oct 2023 10:40:39 +1000 Subject: [PATCH] Login to ghcr.io --- .github/workflows/release.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fddfec2..0648a7c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -104,18 +104,25 @@ jobs: EOF - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to ECR Public - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: public.ecr.aws username: ${{ secrets.RELEASE_ECR_ACCESS_KEY_ID }} password: ${{ secrets.RELEASE_ECR_SECRET_ACCESS_KEY }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Push images if: ${{ success() && github.ref == 'refs/heads/master' }} run: |