diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5cc2737b45f56462bd9e7819ac2cff439dcf7863..152a4d7c42ca5d3431defe5e9b7dc545d7236513 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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." +