diff --git a/scripts/gitlab/create-environment.sh b/scripts/gitlab/create-environment.sh index ad9cedd..6b090d2 100644 --- a/scripts/gitlab/create-environment.sh +++ b/scripts/gitlab/create-environment.sh @@ -20,12 +20,12 @@ echo ' content = \"\$(\$template | convertto-yaml)\" } | ConvertTo-Json Invoke-RestMethod -Headers @{ \"PRIVATE-TOKEN\"= \$ENV:GITLAB_TOKEN } -ContentType \"application/json\" -Method Put -body \$body -Uri \"https://gitlab.com/api/v4/projects/45028985/repository/files/durpapi%2FChart.yaml\"" + needs: + - pipeline: $PARENT_PIPELINE_ID + job: version ' >> generated-config.yml echo " - needs: - - job: version - artifacts: true environment: name: $ENVIRONMENT " >> generated-config.yml