-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use deterministic tag for e2e-images and cleanup after use (#954)
* Use deterministic tag for e2e-images and cleanup after use Signed-off-by: Andrea Mazzotti <[email protected]> * Use deterministic image tag for short e2e jobs Signed-off-by: Andrea Mazzotti <[email protected]> --------- Signed-off-by: Andrea Mazzotti <[email protected]>
- Loading branch information
1 parent
451c249
commit ae2131b
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ env: | |
GINKGO_LABEL_FILTER: full | ||
GINKGO_TESTS: ${{ github.workspace }}/${{ inputs.test_suite }} | ||
GINKGO_NODES: 5 | ||
TAG: v${{ github.run_number }}.${{ github.run_attempt }} | ||
|
||
jobs: | ||
run_e2e_tests: | ||
|
@@ -122,6 +123,11 @@ jobs: | |
age-in-hours: 6 | ||
resource-label-key: ${{ secrets.GCP_LABEL_KEY }} | ||
resource-label-value: ${{ secrets.GCP_LABEL_VALUE }} | ||
- name: Cleanup e2e test image | ||
if: always() | ||
run: | | ||
IMAGE_URL="$(gh api /orgs/rancher/packages/container/turtles-e2e/versions | jq ".[] | select( .metadata.container.tags | contains([\"$TAG\"])) | .url" | sed 's/\"//g')" | ||
gh api -X DELETE "$IMAGE_URL" | ||
- name: Send failed status to slack | ||
if: failure() | ||
uses: slackapi/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters