Skip to content

Commit

Permalink
fix TAG used in post push test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Jan 25, 2024
1 parent 8173086 commit 0533abe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Post push tests
run: |
echo "Start running tests";
TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep "dev-")
TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep "ghcr.io" | grep "dev-" | tr '\n' ' ' | cut -f1 -d ' ')
echo "Using tag ${TAG}";
export GANTRY_TEST_CONTAINER_REPO_TAG="${TAG}";
export GANTRY_TEST_ENABLE_TESTS="test_new_image_";
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false
# - name: Post push tests
# run: |
# echo "Start running tests"
# export GANTRY_TEST_CONTAINER_REPO_TAG="${{ github.repository }}:${{ steps.git.outputs.image_tag }}"
# export GANTRY_TEST_ENABLE_TESTS="new_image"
# ./tests/run_all_tests.sh "gantry-test" "ghcr.io" "${{ github.repository_owner }}" "${{ github.token }}"
# echo "Done running tests"
- name: Post push tests
run: |
echo "Start running tests";
TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep "ghcr.io" | tr '\n' ' ' | cut -f1 -d ' ')
echo "Using tag ${TAG}";
export GANTRY_TEST_CONTAINER_REPO_TAG="${TAG}";
export GANTRY_TEST_ENABLE_TESTS="test_new_image_";
./tests/run_all_tests.sh "${{ github.repository }}-test" "ghcr.io" "${{ github.repository_owner }}" "${{ github.token }}";
echo "Done running tests";
clean-ghcr-tests:
name: Delete old tests container images
Expand Down

0 comments on commit 0533abe

Please sign in to comment.