diff --git a/scripts/gitlab/create-environment.sh b/scripts/gitlab/create-environment.sh index 006ba93..99d1af4 100644 --- a/scripts/gitlab/create-environment.sh +++ b/scripts/gitlab/create-environment.sh @@ -5,9 +5,6 @@ echo " deploy_$VERSION: stage: deploy - needs: - - pipeline: $PARENT_PIPELINE_ID - job: version script: - echo "Deploy to staging server" environment: diff --git a/templates/gitlab.tpl.yml b/templates/gitlab.tpl.yml index e4501f2..62d67e3 100644 --- a/templates/gitlab.tpl.yml +++ b/templates/gitlab.tpl.yml @@ -24,6 +24,9 @@ generate-config: stage: build + needs: + - pipeline: $PARENT_PIPELINE_ID + job: version script: - ./scripts/gitlab/create-environment.sh artifacts: