Skip to content

Commit ea1d8d1

Browse files
committed
Add build image to workflow
1 parent 1eda9b6 commit ea1d8d1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/actions/build-push-artifacts/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ runs:
4747
file: ci/Dockerfile
4848
context: .
4949
push: true
50-
tags: ${{ steps.login-ecr-vaec.outputs.registry }}/notification_api:${{ inputs.ref }}
50+
tags: ${{ steps.login-ecr-vaec.outputs.registry }}/va_enp_api:${{ inputs.ref }}

.github/actions/ecs-task-render-deploy/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
envsubst < "${{ inputs.task-definition-path }}" > pre-rendered-task-definition.json
5454
5555
- name: Additional Rendering for Double Interpolation
56-
id: pre_render
56+
id: final_pre_render
5757
shell: bash
5858
run: |
5959
echo "Rendering template with envsubst..."

.github/workflows/deploy.yml

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Deploy to ENV
22
## Right now, this workflow is being used to test the rendering of task definitions. This will be extended to be
33
## the workflow used that deploys to any arbitrary environment as part of https://github.com/department-of-veterans-affairs/va-enp-api/issues/76#issue-2669422105
44

5+
run-name: "Deploy to ${{ inputs.environment }}"
6+
7+
58
on:
69
workflow_dispatch:
710
inputs:
@@ -26,6 +29,15 @@ jobs:
2629
- uses: actions/checkout@v4
2730
with:
2831
ref: ${{ inputs.ref }}
32+
33+
- name: Build and Push Artifacts
34+
uses: ./.github/actions/build-push-artifacts
35+
with:
36+
ref: ${{ inputs.ref }}
37+
aws-access-key-id: ${{ secrets.VAEC_AWS_ACCESS_KEY_ID }}
38+
aws-secret-access-key: ${{ secrets.VAEC_AWS_SECRET_ACCESS_KEY }}
39+
aws-region: ${{ secrets.AWS_REGION }}
40+
role-to-assume: ${{ secrets.VAEC_DEPLOY_ROLE }}
2941

3042
- name: Renders task definition for ${{ inputs.environment }}
3143
uses: ./.github/actions/ecs-task-render-deploy

0 commit comments

Comments
 (0)