Skip to content
Snippets Groups Projects
Commit 69909474 authored by Łukasz Korbasiewicz's avatar Łukasz Korbasiewicz Committed by Russell Dickenson
Browse files

Updated documentation with environment (batch 1)

parent 40995ebe
No related branches found
No related tags found
1 merge request!96816Updated documentation with environment (batch 1)
......@@ -50,6 +50,7 @@ deploy:
script:
- aws s3 ...
- aws create-deployment ...
environment: production
```
GitLab provides a Docker image that includes the AWS CLI:
......
......@@ -171,6 +171,7 @@ deploy:
include: deploy.gitlab-ci.yml
strategy: depend
resource_group: AWS-production
environment: production
```
```yaml
......@@ -187,6 +188,7 @@ provision:
deployment:
stage: deploy
script: echo "Deploying..."
environment: production
```
You must define [`strategy: depend`](../yaml/index.md#triggerstrategy)
......@@ -224,6 +226,7 @@ deploy:
stage: deploy
script: echo
resource_group: production
environment: production
```
In a parent pipeline, it runs the `test` job that subsequently runs a child pipeline,
......@@ -250,4 +253,5 @@ deploy:
stage: deploy
script: echo
resource_group: production
environment: production
```
......@@ -88,6 +88,7 @@ trigger_pipeline:
- 'curl --fail --request POST --form token=$MY_TRIGGER_TOKEN --form ref=main "https://gitlab.example.com/api/v4/projects/123456/trigger/pipeline"'
rules:
- if: $CI_COMMIT_TAG
environment: production
```
In this example:
......
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