diff --git a/.github/workflows/publish_staging_images.yml b/.github/workflows/publish_staging_images.yml index d6e415bef..458fbe591 100644 --- a/.github/workflows/publish_staging_images.yml +++ b/.github/workflows/publish_staging_images.yml @@ -22,8 +22,6 @@ jobs: build: name: Build PLATFORM-UI staging image and push to Docker Hub runs-on: ubuntu-latest - outputs: - tag: ${{ steps.tag.outputs.tag }} steps: - name: Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 @@ -71,7 +69,11 @@ jobs: context: . file: ./Dockerfile push: true - tags: hbpmip/platform-ui:${{ steps.tag.outputs.tag }} + # Immutable - tag plus a moving tag (staging-b / staging-c) + # for Argo CD Image Updater; exact tracked pattern to be confirmed by MIP Infra Staging. + tags: | + hbpmip/platform-ui:${{ steps.tag.outputs.tag }} + hbpmip/platform-ui:${{ github.ref_name }} cache-from: type=local,src=/tmp/.buildx-cache/platform-ui cache-to: type=local,dest=/tmp/.buildx-cache-new/platform-ui @@ -80,16 +82,3 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - bump: - name: Bump staging image tag in mip - needs: build - uses: Medical-Informatics-Platform/mip/.github/workflows/bump-staging-image.yml@0eff4dd7667262adf39284c7585f2b8ee75dd034 # mip PR #33 (chore/bump-staging-workflow); switch to @master once merged - permissions: - contents: read - with: - branch: ${{ github.ref_name }} - key: platform-ui.image.tag - tag: ${{ needs.build.outputs.tag }} - secrets: - app-id: ${{ secrets.STAGING_BUMP_APP_ID }} - private-key: ${{ secrets.STAGING_BUMP_APP_PRIVATE_KEY }}