@@ -94,48 +94,48 @@ jobs:
9494 name : lambda-${{ needs.metadata.outputs.version }}
9595 path : ./build
9696
97- - name : " Configure AWS Credentials"
98- uses : aws-actions/configure-aws-credentials@v5
99- with :
100- role-to-assume : arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/service-roles/github-actions-api-deployment-role
101- aws-region : eu-west-2
102-
103- - name : " Terraform Apply"
104- env :
105- ENVIRONMENT : dev
106- WORKSPACE : " default"
107- TF_VAR_API_CA_CERT : ${{ secrets.API_CA_CERT }}
108- TF_VAR_API_CLIENT_CERT : ${{ secrets.API_CLIENT_CERT }}
109- TF_VAR_API_PRIVATE_KEY_CERT : ${{ secrets.API_PRIVATE_KEY_CERT }}
110- TF_VAR_SPLUNK_HEC_TOKEN : ${{ secrets.SPLUNK_HEC_TOKEN }}
111- TF_VAR_SPLUNK_HEC_ENDPOINT : ${{ secrets.SPLUNK_HEC_ENDPOINT }}
112-
113- run : |
114- mkdir -p ./build
115- echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=apply"
116- make terraform env=$ENVIRONMENT stack=networking tf-command=apply workspace=$WORKSPACE
117- echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=apply"
118- make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
119- working-directory : ./infrastructure
120-
121- - name : " Tag the dev deployment"
122- run : |
123- git config user.name "github-actions"
124- git config user.email "[email protected] " 125- git tag ${{ needs.metadata.outputs.version }}
126- git push origin ${{ needs.metadata.outputs.version }}
127-
128- - name : " Notify Slack on PR merge"
129- 130- with :
131- webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
132- webhook-type : webhook-trigger
133- payload : |
134- status: "${{ job.status }}"
135- link: "https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
136- Author: "${{ github.actor }}"
137- title: "Pushed to main"
138- version: "${{ needs.metadata.outputs.version }}"
97+ # - name: "Configure AWS Credentials"
98+ # uses: aws-actions/configure-aws-credentials@v5
99+ # with:
100+ # role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/service-roles/github-actions-api-deployment-role
101+ # aws-region: eu-west-2
102+ #
103+ # - name: "Terraform Apply"
104+ # env:
105+ # ENVIRONMENT: dev
106+ # WORKSPACE: "default"
107+ # TF_VAR_API_CA_CERT: ${{ secrets.API_CA_CERT }}
108+ # TF_VAR_API_CLIENT_CERT: ${{ secrets.API_CLIENT_CERT }}
109+ # TF_VAR_API_PRIVATE_KEY_CERT: ${{ secrets.API_PRIVATE_KEY_CERT }}
110+ # TF_VAR_SPLUNK_HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN }}
111+ # TF_VAR_SPLUNK_HEC_ENDPOINT: ${{ secrets.SPLUNK_HEC_ENDPOINT }}
112+ #
113+ # run: |
114+ # mkdir -p ./build
115+ # echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=apply"
116+ # make terraform env=$ENVIRONMENT stack=networking tf-command=apply workspace=$WORKSPACE
117+ # echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=apply"
118+ # make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
119+ # working-directory: ./infrastructure
120+ #
121+ # - name: "Tag the dev deployment"
122+ # run: |
123+ # git config user.name "github-actions"
124+ # git config user.email "[email protected] "125+ # git tag ${{ needs.metadata.outputs.version }}
126+ # git push origin ${{ needs.metadata.outputs.version }}
127+ #
128+ # - name: "Notify Slack on PR merge"
129+ # uses: slackapi/[email protected] 130+ # with:
131+ # webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
132+ # webhook-type: webhook-trigger
133+ # payload: |
134+ # status: "${{ job.status }}"
135+ # link: "https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
136+ # Author: "${{ github.actor }}"
137+ # title: "Pushed to main"
138+ # version: "${{ needs.metadata.outputs.version }}"
139139
140140# regression-tests:
141141# name: "Regression Tests"
0 commit comments