1515 ENCRYPT : " true"
1616
1717jobs :
18+ apply :
1819
19- apply-staging :
20- name : apply (staging)
21- runs-on : ubuntu-latest
22- environment : staging
23- env :
24- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25- TF_VAR_cf_username : ${{ secrets.TF_VAR_cf_username }}
26- TF_VAR_cf_password : ${{ secrets.TF_VAR_cf_password }}
27- TF_VAR_aws_access_key_id : ${{ secrets.TF_VAR_aws_access_key_id }}
28- TF_VAR_aws_secret_access_key : ${{ secrets.TF_VAR_aws_secret_access_key }}
29- TERRAFORM_PRE_RUN : |
30- ./install-tools.sh
31- cp helm /usr/local/bin/
32- cp kubectl /usr/local/bin/
33- cp aws-iam-authenticator /usr/local/bin/
34- aws-iam-authenticator help
35-
36- steps :
37- - name : checkout
38- uses : actions/checkout@v3
39- - name : prep applications
40- run : |
41- ./app-setup-eks.sh
42- ./app-setup-solrcloud.sh
43- ./app-setup-smtp.sh
44- - name : terraform apply (staging)
45- uses : dflook/terraform-apply@v1
46- with :
47- path : .
48- label : staging
49- workspace : staging
50- var_file : terraform.staging.tfvars
51- backend_config : >
52- bucket=${{ env.BUCKET }},
53- key=${{ env.KEY }},
54- region=${{ env.REGION }},
55- encrypt=${{ env.ENCRYPT }},
56- access_key=${{ env.AWS_ACCESS_KEY_ID }},
57- secret_key=${{ env.AWS_SECRET_ACCESS_KEY }}
58- # - name: Setup tmate session
59- # if: ${{ failure() }}
60- # uses: mxschmitt/action-tmate@v3
61- # with:
62- # limit-access-to-actor: true
63- - name : test staging environment
64- run : echo staging tests ok # TODO staging smoke tests
65-
66- apply-production :
67- needs : apply-staging
68-
69- name : apply (production)
20+ name : apply
7021 runs-on : ubuntu-latest
7122 environment : production
7223 env :
@@ -75,23 +26,16 @@ jobs:
7526 TF_VAR_cf_password : ${{ secrets.TF_VAR_cf_password }}
7627 TF_VAR_aws_access_key_id : ${{ secrets.TF_VAR_aws_access_key_id }}
7728 TF_VAR_aws_secret_access_key : ${{ secrets.TF_VAR_aws_secret_access_key }}
78- TERRAFORM_PRE_RUN : |
79- ./install-tools.sh
80- cp helm /usr/local/bin/
81- cp kubectl /usr/local/bin/
82- cp aws-iam-authenticator /usr/local/bin/
83- aws-iam-authenticator help
8429
8530 steps :
8631 - name : checkout
8732 uses : actions/checkout@v3
8833 - name : prep applications
8934 run : |
90- ./app-setup-eks.sh
91- ./app-setup-solrcloud.sh
35+ ./app-setup-solr.sh
9236 ./app-setup-smtp.sh
93- - name : terraform apply (production)
94- uses : dflook/terraform -apply@v1
37+ - name : OpenTofu apply (production)
38+ uses : dflook/tofu -apply@v1
9539 with :
9640 path : .
9741 label : production
0 commit comments