Allow release checks to be triggered

parent 22d04ff8
Pipeline #1842 passed with stage
in 6 minutes and 55 seconds
......@@ -7,6 +7,7 @@ stages:
- build
- test
- release
- check
variables:
TEST_IMAGE: briar/reproducer:${CI_BUILD_REF_NAME}
......@@ -20,6 +21,8 @@ build:
script:
- docker build -t ${TEST_IMAGE} .
- docker push $TEST_IMAGE
except:
- triggers
test_success:
stage: test
......@@ -27,11 +30,15 @@ test_success:
# Consider adding the cap and the device directly to the CI config
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.0.1
except:
- triggers
test_failure:
stage: test
script:
- if docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.0.3; then exit 1; else exit 0; fi
except:
- triggers
release:
stage: release
......@@ -42,3 +49,13 @@ release:
only:
- master
- tags
except:
- triggers
check:
stage: check
script:
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${RELEASE_IMAGE} ./reproduce.py ${RELEASE_TAG}
only:
- triggers
Markdown is supported
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