Merge pull request #1143 from yangsoon/workflow

fix #1140 delete image after e2e test
This commit is contained in:
Jianbo Sun
2021-03-05 12:56:12 +08:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -116,6 +116,10 @@ jobs:
- name: Run e2e tests
run: make e2e-test
- name: Cleanup image
if: ${{ always() }}
run: make image-cleanup
staticcheck:
runs-on: ubuntu-20.04
+6
View File
@@ -150,6 +150,12 @@ e2e-cleanup:
# Clean up
rm -rf ~/.vela
image-cleanup:
# Delete Docker image
ifneq ($(shell docker images -q vela-core-test:$(GIT_COMMIT)),)
docker image rm -f vela-core-test:$(GIT_COMMIT)
endif
# load docker image to the kind cluster
kind-load:
docker build -t vela-core-test:$(GIT_COMMIT) .