Skip to content
Snippets Groups Projects
Commit 9746af61 authored by Florian Sesser's avatar Florian Sesser
Browse files

Merge branch 'gitlab-ci-6' into 'master'

Add deployment hooks to GitLab CI config

See merge request opensource/PrivateStorageio!63
parents a6f523d0 40463bbc
No related branches found
No related tags found
1 merge request!63Add deployment hooks to GitLab CI config
Pipeline #306 passed
......@@ -14,3 +14,19 @@ system-tests:
script:
- "nix-shell --run 'nix-build nixos/system-tests.nix'"
deploy-to-staging:
stage: "deploy"
only:
- "staging"
script:
- echo -n "Hello $GITLAB_USER_LOGIN from $CI_JOB_NAME. I was triggered by $CI_PIPELINE_SOURCE "
- echo "and would like to deploy the $CI_COMMIT_BRANCH branch to the staging environment."
deploy-to-production:
stage: "deploy"
only:
- "production"
script:
- echo -n "Hello $GITLAB_USER_LOGIN from $CI_JOB_NAME. I was triggered by $CI_PIPELINE_SOURCE "
- echo "and would like to deploy the $CI_COMMIT_BRANCH branch to the production environment."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment