Skip to content

Commit

Permalink
PLT-271 Workflow fix (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsf authored Dec 15, 2023
1 parent bfd9113 commit 6ab94ff
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/opt-out-import-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ jobs:
ARTIFACTORY_PASSWORD=/artifactory/password
- name: Build opt-out-import zip file
run: ./gradlew buildZip -b optout/build.gradle
run: ./gradlew buildZip -b optout/build.gradle --console=plain

- name: Assume role in target account
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.ACCOUNT_ROLE }}

- name: Upload to s3
run: aws s3 cp optout.zip s3://${{ vars.OPT_OUT_IMPORT_BUCKET }}/function.zip

- name: Reload lambda code
run: aws lambda update-function-code --function-name ab2d-dev-opt-out-import --s3-bucket ${{ vars.OPT_OUT_IMPORT_BUCKET }} --s3-key function.zip
- name: Upload and reload
run: |
aws s3 cp --no-progress optout/build/distributions/optout.zip s3://${{ vars.OPT_OUT_IMPORT_BUCKET }}/function.zip
aws lambda update-function-code --function-name ab2d-dev-opt-out-import --s3-bucket ${{ vars.OPT_OUT_IMPORT_BUCKET }} --s3-key function.zip

0 comments on commit 6ab94ff

Please sign in to comment.