From 11fb9e1e5b6887bd7131f635b3116cc4b77d6c9e Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 16 May 2024 10:01:18 -0400 Subject: [PATCH] release test --- .github/workflows/deploy-production.yml | 4 ++++ .github/workflows/deploy-staging.yml | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 1dbc555b4..763ae9438 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -129,6 +129,10 @@ jobs: version: ${{ github.event.release.id }} file: ecr_tag.txt target: ./tofu/environments/stage/services/backend-service + + - name: Unzip ECR tag + working-directory: ./tofu/environments/stage/services/backend-service + run: unzip ecr_tag.zip - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 8f734d7a8..57cacb77b 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -168,15 +168,15 @@ jobs: role-session-name: Appointment_GitHub_to_AWS_via_FederatedOIDC aws-region: ${{ vars.AWS_REGION }} - - name: Build frontend archive - run: | - zip -r frontend.zip frontend/dist - +# - name: Build frontend archive +# run: | +# zip -r frontend.zip frontend/dist +# - name: Archive Frontend uses: actions/upload-artifact@v4 with: name: frontend - path: frontend.zip + path: frontend/dist - name: Deploy frontend to S3 run: aws s3 sync frontend/dist "s3://${{ needs.deploy-iac.outputs.bucket }}" @@ -279,7 +279,7 @@ jobs: uses: actions/download-artifact@v4 with: name: - ecr_tag.txt + ecr_tag - name: create release tag id: create-release-tag @@ -301,4 +301,4 @@ jobs: draft: true files: | frontend.zip - ecr_tag.txt + ecr_tag.zip