From c6d26f0d379136f9e4a011f1f07319ed2f347f2b Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Thu, 2 Dec 2021 15:55:58 +0200 Subject: [PATCH] Authenticate against ghcr.io This change adds a login step that authenticates the runner to ghcr.io. This allows whomever triggers the action to use github packages as a destination for the container images. Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/build-test-images.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-test-images.yml b/.github/workflows/build-test-images.yml index ffbcea893..a1a2a5901 100644 --- a/.github/workflows/build-test-images.yml +++ b/.github/workflows/build-test-images.yml @@ -143,6 +143,13 @@ jobs: service_account_key: ${{ secrets.GCP_SA_KEY }} export_default_credentials: true + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push images shell: bash run: |