diff --git a/.github/workflows/deployapi.yml b/.github/workflows/deployapi.yml index 826c7cc4..edecaf85 100644 --- a/.github/workflows/deployapi.yml +++ b/.github/workflows/deployapi.yml @@ -49,8 +49,8 @@ jobs: --build-arg admin_password=${{ env.ADP }} \ --build-arg admin_email=${{ env.ADE }} \ --build-arg region=${{ env.AWS_REGION }} \ - --secret id=ak,${{ secrets.AWS_ACCESS_KEY }} \ - --secret id=sak,${{ secrets.AWS_SECRET_ACCESS_KEY }} \ + --secret id=ak,env=${{ secrets.AWS_ACCESS_KEY }} \ + --secret id=sak,env=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ -f Dockerfile.prod . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG echo "{image}={$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/deployfe.yml b/.github/workflows/deployfe.yml index 2280f385..27e8cd1f 100644 --- a/.github/workflows/deployfe.yml +++ b/.github/workflows/deployfe.yml @@ -69,7 +69,7 @@ jobs: path: /tmp/workspace - name: Deploy to S3 - run: aws s3 sync /tmp/workspace/build/ s3://${{ secrets.FE_S3_URL }} --acl public-read + run: aws s3 sync /tmp/workspace/build/ s3://pv-validation-hub-website --acl public-read - name: Run CF invalidation run: aws cloudfront create-invalidation --distribution-id ${{ secrets.FE_CF_ID }} --paths '/*'