From 664375d455db0f8e1b4946fa177c73eb51de314d Mon Sep 17 00:00:00 2001 From: Shankari Date: Thu, 14 Nov 2024 09:07:08 -0800 Subject: [PATCH] Now that build works, re-tag and push --- .github/workflows/build_and_push_csms.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_push_csms.yml b/.github/workflows/build_and_push_csms.yml index 410f4c5d..ed47b36f 100644 --- a/.github/workflows/build_and_push_csms.yml +++ b/.github/workflows/build_and_push_csms.yml @@ -93,8 +93,24 @@ jobs: pushd ${{ matrix.csms }}-csms docker compose build - - name: List and export newly built images - id: list-and-export-newly-built-images + - name: List, tag and push newly built images + id: list-tag-and-push-newly-built-images shell: bash run: | + echo "Before retagging, image list is" docker image list + # 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}" + echo "After retagging, image list is" + docker image list + + - name: Push the images as packages + id: push-the-images-as-packages + shell: bash + run: | + docker push ghcr.io/everest/everest-demo/${{ $matrix-csms }}-csms-gateway:"${TAG}" + docker push ghcr.io/everest/everest-demo/${{ $matrix-csms }}-csms-manager:"${TAG}" + +