-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatlantis.yaml
39 lines (36 loc) · 1.43 KB
/
atlantis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: 2
automerge: true
projects:
- name: aws-stag
dir: aws-stag/
workflow: firefly
terraform_version: v1.5.5
workflows:
firefly:
plan:
steps:
- run: if [ ! -f "$HOME/fireflyci" ]; then curl -L -o fireflyci.tar.gz https://gofirefly-prod-iac-ci-cli-binaries.s3.amazonaws.com/fireflyci/latest/fireflyci_Linux_x86_64.tar.gz && tar -xf fireflyci.tar.gz && chmod a+x fireflyci && mv fireflyci "$HOME/fireflyci" && rm fireflyci.tar.gz; fi
- init
- run: terraform validate
- plan
- show
- run: terraform$ATLANTIS_TERRAFORM_VERSION show $PLANFILE > plan_raw_log.log
- run: $HOME/fireflyci post-plan -f $SHOWFILE --plan-output-raw-log-file plan_raw_log.log --workspace $REPO_REL_DIR
apply:
steps:
- run: $HOME/fireflyci post-plan -f $SHOWFILE --plan-output-raw-log-file plan_raw_log.log --workspace $REPO_REL_DIR
- apply
# Create a secret with Firefly creds and add the following to the Atlantis server chart values file
# environmentSecrets:
# - name: FIREFLY_ACCESS_KEY
# secretKeyRef:
# name: firefly-secrets
# key: FIREFLY_ACCESS_KEY
# - name: FIREFLY_SECRET_KEY
# secretKeyRef:
# name: firefly-secrets
# key: FIREFLY_SECRET_KEY
# kubectl create secret generic fireflySecret \
# --namespace=atlantis \
# --from-literal=FIREFLY_ACCESS_KEY=<FIREFLY_ACCESS_KEY_VALUE> \
# --from-literal=FIREFLY_SECRET_KEY=<FIREFLY_SECRET_KEY_VALUE>