From 8f56e7fb92702525d81b73f242f7836da1693e43 Mon Sep 17 00:00:00 2001 From: Manuel Luypaert Date: Wed, 8 May 2024 18:37:05 +0100 Subject: [PATCH] Manually tag and push to fix local image pushing errors --- .github/workflows/PR-validation.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/PR-validation.yml b/.github/workflows/PR-validation.yml index a965890e..c1db458c 100644 --- a/.github/workflows/PR-validation.yml +++ b/.github/workflows/PR-validation.yml @@ -51,17 +51,19 @@ jobs: with: context: ./pipeline/seq_retrieval/ push: false - tags: | - agr_pavi/pipeline_seq_retrieval:latest - ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${{needs.container-build-context.outputs.tagname}} + tags: agr_pavi/pipeline_seq_retrieval:latest outputs: | type=docker,dest=/tmp/pavi_seq_retrieval_docker_image.tar - type=image,push=true + type=image,push=false - name: Upload image as artifact (share between jobs) uses: actions/upload-artifact@v4 with: name: seq_retrieval_image path: /tmp/pavi_seq_retrieval_docker_image.tar + - name: Tag and push image to registry + run: | + docker tag agr_pavi/pipeline_seq_retrieval:latest ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${{needs.container-build-context.outputs.tagname}} + docker push ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${{needs.container-build-context.outputs.tagname}} pipeline-seq-retrieval-code-checks: name: pipeline/seq_retrieval code checks runs-on: ubuntu-22.04 @@ -120,17 +122,19 @@ jobs: with: context: ./pipeline/alignment/ push: false - tags: | - agr_pavi/pipeline_alignment:latest - ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${{needs.container-build-context.outputs.tagname}} + tags: agr_pavi/pipeline_alignment:latest outputs: | type=docker,dest=/tmp/pavi_alignment_docker_image.tar - type=image,push=true + type=image,push=false - name: Upload image as artifact (share between jobs) uses: actions/upload-artifact@v4 with: name: alignment_image path: /tmp/pavi_alignment_docker_image.tar + - name: Tag and push image to registry + run: | + docker tag agr_pavi/pipeline_alignment:latest ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${{needs.container-build-context.outputs.tagname}} + docker push ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${{needs.container-build-context.outputs.tagname}} pipeline-alignment-unit-testing: name: pipeline/alignment unit testing needs: