Skip to content

Commit f43c72b

Browse files
committed
Add manual deploy workflow
1 parent 2fb0f08 commit f43c72b

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/actions/deploy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ runs:
107107
id: deployment-conclusion
108108
shell: bash
109109
run: |
110-
make ${{ env.DEPLOY_ENV }} ci tag=${{ inputs.tag }} terraform-app-apply
110+
make ${{ env.DEPLOY_ENV }} ci tag=${{ inputs.tag }} terraform-app-plan

.github/workflows/build_and_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and deploy
33
on:
44
push:
55
branches:
6-
- main # Push to branch other than main deploys directly to environment with the same name. ie 'dev' branch deploys to 'dev' environment
6+
- main1 # Push to branch other than main deploys directly to environment with the same name. ie 'dev' branch deploys to 'dev' environment
77
paths-ignore:
88
- 'bigquery/**'
99
- 'documentation/**'
@@ -14,11 +14,11 @@ on:
1414
- 'app/assets/stylesheets/README.md'
1515
- '.github/pull_request_template.md'
1616

17-
pull_request:
18-
types:
19-
- labeled
20-
- synchronize
21-
- reopened
17+
# pull_request:
18+
# types:
19+
# - labeled
20+
# - synchronize
21+
# - reopened
2222

2323
concurrency: workflow-Build-and-deploy-${{ github.ref }}
2424
permissions:

.github/workflows/manual_deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
image_tag:
1717
description: Docker image tag to be deployed
1818
required: true
19+
push:
20+
branches:
21+
- add_dr_workflows
1922

2023
permissions:
2124
id-token: write
@@ -26,7 +29,7 @@ jobs:
2629
name: ${{ github.event.inputs.environment }} deployment
2730
runs-on: ubuntu-latest
2831
environment:
29-
name: ${{ github.event.inputs.environment }}
32+
name: qa # ${{ github.event.inputs.environment }}
3033
url: ${{ steps.deploy_app_v2.outputs.deploy-url }}
3134
steps:
3235
- name: Checkout
@@ -42,11 +45,6 @@ jobs:
4245
role-duration-seconds: 3600
4346
role-skip-session-tagging: true
4447

45-
- name: Get secrets from AWS ParameterStore
46-
uses: dkershner6/aws-ssm-getparameters-action@v2
47-
with:
48-
parameterPairs: "/teaching-vacancies/github_action/infra/slack_webhook = SLACK_WEBHOOK"
49-
5048
- name: Deploy App to ${{ github.event.inputs.environment }}
5149
id: deploy_app_v2
5250
uses: ./.github/actions/deploy/
@@ -56,5 +54,5 @@ jobs:
5654
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
5755
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
5856
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
59-
environment: ${{ github.event.inputs.environment }}
57+
environment: qa # ${{ github.event.inputs.environment }}
6058
tag: ${{ github.event.inputs.image_tag }}

0 commit comments

Comments
 (0)