From 9ac61a758999f1774662b537a3ea89e3776b80df Mon Sep 17 00:00:00 2001 From: Birgitta Boeckeler Date: Tue, 9 Apr 2024 13:36:41 +0200 Subject: [PATCH] Authenticate to pull team-ai base image --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 406d4e3..b473939 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,13 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ github.repository }} + - name: Authenticate to Team AI GH repo (TODO remove once repo is public) + run: | + echo '{"auths":{"ghcr.io":{"auth":"'$(echo -n ${{ secrets.GH_REGISTRY_TOKEN }} | base64)'"}}}' > $HOME/.docker/config.json + env: + GH_REGISTRY_TOKEN: ${{ secrets.GH_REGISTRY_TOKEN }} + + - name: Kaniko build community instance image # if: steps.changes.outputs.build == 'true' id: 'kaniko-community-instance'