-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpreview-environment-deployment.yml.bak
47 lines (40 loc) · 1.81 KB
/
preview-environment-deployment.yml.bak
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
40
41
42
43
44
45
46
47
# Note: this filename has been moved to *.yml.bak to prevent GHA from seeing it as a workflow file.
# To restore this workflow, move the file name back to *.yml and uncomment the workflow.
# - Tim Cosgrove, 2023 May 15.
# name: Preview Environment Deployment
# on:
# push:
# branches:
# - '**'
# jobs:
# deploy-preview-environment:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef # v2.0.0
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-gov-west-1
# - name: Get va-vsp-bot token
# uses: department-of-veterans-affairs/action-inject-ssm-secrets@d8e6de3bde4dd728c9d732baef58b3c854b8c4bb # latest
# with:
# ssm_parameter: /devops/VA_VSP_BOT_GITHUB_TOKEN
# env_variable_name: VA_VSP_BOT_GITHUB_TOKEN
# - name: Start Deployment
# uses: bobheadxi/deployments@v1
# id: deployment
# with:
# step: start
# token: ${{ env.VA_VSP_BOT_GITHUB_TOKEN }}
# env: master/main/${{ github.ref_name }}
# ref: ${{ github.ref_name }}
# - name: Repository Dispatch
# uses: peter-evans/repository-dispatch@v2
# with:
# token: ${{ env.VA_VSP_BOT_GITHUB_TOKEN }}
# event-type: deploy_review_instance
# repository: department-of-veterans-affairs/vets-website
# client-payload: '{"source_repo": "content-build", "source_ref": "${{ github.ref_name }}", "deployment_id": "${{ steps.deployment.outputs.deployment_id }}" }'