diff --git a/.github/workflows/itest.yml b/.github/workflows/itest.yml index 272b6e2d..e91d9d55 100644 --- a/.github/workflows/itest.yml +++ b/.github/workflows/itest.yml @@ -29,7 +29,6 @@ jobs: runs-on: [self-hosted, v3] outputs: image: ${{ steps.push.outputs.IMAGE }} - promoted_image: ${{ steps.push.outputs.PROMOTED_IMAGE }} steps: - name: Checkout code uses: actions/checkout@v2 @@ -56,11 +55,11 @@ jobs: docker push $IMAGE echo "IMAGE=$IMAGE" >> "$GITHUB_OUTPUT" fi - . ./conf.sh - echo "PROMOTED_IMAGE=$PROMOTED_IMAGE" >> "$GITHUB_OUTPUT" integration-tests: name: Run integration tests runs-on: [self-hosted, v3] + outputs: + promoted_image: ${{ steps.promote.outputs.PROMOTED_IMAGE }} needs: build steps: - name: Checkout code @@ -144,6 +143,12 @@ jobs: - name: Check ouput topics are created run: | ./itest/check-results.sh + - name: Set promoted image name + id: promote + run: | + . "$CIUXCONFIG" + . ./conf.sh + echo "PROMOTED_IMAGE=$PROMOTED_IMAGE" >> "$GITHUB_OUTPUT" image-analysis: name: Analyze image runs-on: [self-hosted, v3] @@ -182,7 +187,7 @@ jobs: - name: Push image to IN2P3 registry run: | IMAGE="${{ needs.build.outputs.image }}" - PROMOTED_IMAGE="${{ needs.build.outputs.promoted_image }}" + PROMOTED_IMAGE="${{ needs.integration-tests.outputs.promoted_image }}" docker pull "$IMAGE" docker tag "$IMAGE" "$PROMOTED_IMAGE" docker push "$PROMOTED_IMAGE"