Skip to content
Snippets Groups Projects
Commit 0275ac00 authored by Michal Petrovič's avatar Michal Petrovič
Browse files

Merge branch '8-implement-cleanup-after-pipeline' into 'main'

Update .gitlab-ci.yml

Closes #8

See merge request !9
parents d634dfa6 ef3b34e0
1 merge request!9Update .gitlab-ci.yml
Pipeline #178754 passed with stages
in 5 minutes and 38 seconds
...@@ -11,6 +11,7 @@ stages: ...@@ -11,6 +11,7 @@ stages:
- build - build
- verification - verification
- publish - publish
- cleanup
...@@ -110,3 +111,14 @@ docker-push-tag: ...@@ -110,3 +111,14 @@ docker-push-tag:
script: script:
- docker load -i build/image.tar - docker load -i build/image.tar
- docker push $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG - docker push $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG
cleanup:
stage: cleanup
image: docker:git
tags:
- cache
script:
- docker system prune -a -f || true
- rm -rf build/ || true
when: always
allow_failure: true
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment