From fc638a257b052511eb2f0a83aa6543f0bfe4ea20 Mon Sep 17 00:00:00 2001 From: Shankari Date: Thu, 14 Nov 2024 09:37:03 -0800 Subject: [PATCH] Login before pushing --- .github/workflows/build_and_push_csms.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push_csms.yml b/.github/workflows/build_and_push_csms.yml index 41668a03..45f81f8d 100644 --- a/.github/workflows/build_and_push_csms.yml +++ b/.github/workflows/build_and_push_csms.yml @@ -104,10 +104,17 @@ jobs: # hardcoding the list of containers for now echo "Retagging {{ $matrix.csms }}-csms-gateway:latest to " docker tag ${{ matrix.csms }}-csms-gateway:latest ghcr.io/everest/everest-demo/${{ matrix.csms }}-csms-gateway:"${TAG}" - docker tag ${{ matrix.csms }}-csms-gateway:latest ghcr.io/everest/everest-demo/${{ matrix.csms }}-csms-manager:"${TAG}" + docker tag ${{ matrix.csms }}-csms-manager:latest ghcr.io/everest/everest-demo/${{ matrix.csms }}-csms-manager:"${TAG}" echo "After retagging, image list is" docker image list + - name: Log into GitHub container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Push the images as packages id: push-the-images-as-packages shell: bash