Commit 4e5a11d9 authored by Mathieu Giraud's avatar Mathieu Giraud

.gitlab-ci.yml: more meaningful name for releases, adjust manual

The 'manual' actions concern here 'publish_release' and 'deploy_prod',
the two stages that publish/deploy the release to public places.
parent 06396924
Pipeline #51484 failed with stages
in 3 minutes and 44 seconds
...@@ -18,11 +18,11 @@ stages: ...@@ -18,11 +18,11 @@ stages:
- test_functional_external - test_functional_external
- coverage - coverage
- prepare_release - prepare_release
- release - tgz_release
- valgrind_unit - valgrind_unit
- valgrind_functional - valgrind_functional
- multiple_tests - multiple_tests
- prepare_deploy - publish_release
- deploy_prod - deploy_prod
# Anchors # Anchors
...@@ -131,10 +131,9 @@ prepare_release: ...@@ -131,10 +131,9 @@ prepare_release:
only: only:
- /^feature-.*a.*\/.*$/ - /^feature-.*a.*\/.*$/
release: tgz_release:
stage: release stage: tgz_release
script: make -C algo release RELEASE_TAG=`cat algo/release` script: make -C algo release RELEASE_TAG=`cat algo/release`
when: manual
only: only:
- /^feature-.*a.*\/release$/ - /^feature-.*a.*\/release$/
artifacts: artifacts:
...@@ -147,7 +146,7 @@ release: ...@@ -147,7 +146,7 @@ release:
- ubuntu-16.04-amd64 - ubuntu-16.04-amd64
copy_release: copy_release:
stage: prepare_deploy stage: publish_release
script: script:
- | - |
for repo in $ALGO_REPOSITORIES; do for repo in $ALGO_REPOSITORIES; do
...@@ -157,11 +156,13 @@ copy_release: ...@@ -157,11 +156,13 @@ copy_release:
release_name=$(cat algo/release) release_name=$(cat algo/release)
ssh $VIDJIL_WWW "cd /var/www/html/releases; ln -sf vidjil-algo-${release_name}.tar.gz vidjil-latest.tgz; ln -sf vidjil-algo-${release_name}_x86_64 vidjil-latest_x86_64" ssh $VIDJIL_WWW "cd /var/www/html/releases; ln -sf vidjil-algo-${release_name}.tar.gz vidjil-latest.tgz; ln -sf vidjil-algo-${release_name}_x86_64 vidjil-latest_x86_64"
ssh $VIDJIL_BONSAI "cd /bio1/www/html/vidjil; scp vidjil-algo-${release_name}* $VIDJIL_BONSAI_PROD:/bio1/www/html/vidjil" ssh $VIDJIL_BONSAI "cd /bio1/www/html/vidjil; scp vidjil-algo-${release_name}* $VIDJIL_BONSAI_PROD:/bio1/www/html/vidjil"
when: manual
only: only:
- /^feature-.*a.*\/release$/ - /^feature-.*a.*\/release$/
deploy_release_prod: deploy_release_prod:
stage: deploy_prod stage: deploy_prod
when: manual
only: only:
- /^feature-.*a.*\/release$/ - /^feature-.*a.*\/release$/
script: script:
......
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