Commit 6580297a authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

.gitlab-ci.yml: use g5k-deploy-files --only-if-tag instead of shell snippet

parent d7cf2a7e
Pipeline #45278 waiting for manual action with stages
in 16 minutes and 49 seconds
......@@ -76,17 +76,9 @@ deb-for-stretch:
- bundle exec rake package:build:debian
.push-packages-script: &push-packages-script |
git tag --points-at $CI_COMMIT_SHA #debug output
IS_TAGGED=$(git tag --points-at $CI_COMMIT_SHA)
if [ -n "$IS_TAGGED" ] ; then
echo "Request to push for debian version ${TARGET_DEBIAN_VERSION} for branch ${TARGET_G5K_API_VARIANT}"
g5k-deploy-files --files 'pkg/g5k-api_*.deb' --directory deb/g5k-api/${TARGET_DEBIAN_VERSION}/${TARGET_G5K_API_VARIANT}
else
echo "commit is not tagged"
exit 1
fi
echo "Request to push for debian version ${TARGET_DEBIAN_VERSION} for branch ${TARGET_G5K_API_VARIANT}"
g5k-deploy-files --only-if-tag --files 'pkg/g5k-api_*.deb' --directory deb/g5k-api/${TARGET_DEBIAN_VERSION}/${TARGET_G5K_API_VARIANT}
push-jessie-package-v3: &push-jessie-package-v3
stage: deploy
when: manual
......
Supports Markdown
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