From ede3b67bcaea49da162f2664893b2e4c73628d6b Mon Sep 17 00:00:00 2001 From: KFilippopolitis Date: Wed, 4 Nov 2026 22:59:20 +0200 Subject: [PATCH] ci: push-only staging images (Argo CD Image Updater) Replaces: ea519682 554d664e --- .github/workflows/publish_staging_images.yml | 22 +++++--------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish_staging_images.yml b/.github/workflows/publish_staging_images.yml index 14f73650..ef4fff3d 100644 --- a/.github/workflows/publish_staging_images.yml +++ b/.github/workflows/publish_staging_images.yml @@ -22,8 +22,6 @@ jobs: build: name: Build BACKEND 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-backend:${{ 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-backend:${{ steps.tag.outputs.tag }} + hbpmip/platform-backend:${{ github.ref_name }} cache-from: type=local,src=/tmp/.buildx-cache/backend cache-to: type=local,dest=/tmp/.buildx-cache-new/backend @@ -79,17 +81,3 @@ jobs: run: | 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-backend.image.tag - tag: ${{ needs.build.outputs.tag }} - secrets: - app-id: ${{ secrets.STAGING_BUMP_APP_ID }} - private-key: ${{ secrets.STAGING_BUMP_APP_PRIVATE_KEY }}