Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 26, 2024
1 parent 94d0fbd commit 9d1d653
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/itest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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"

0 comments on commit 9d1d653

Please sign in to comment.