Skip to content

Commit

Permalink
Revert d25e252 (#653)
Browse files Browse the repository at this point in the history
* Revert "adds ENV var to mwc deploy (#652)"

This reverts commit d25e252.

* updates env vars for mobile wallet connector

* removes no cache flag from mwc docker file
  • Loading branch information
scandycuz authored May 23, 2024
1 parent d25e252 commit da83d83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
id-token: write # required to interact with GitHub's OIDC Token endpoint.
contents: read
steps:
- uses: actions/checkout@v3
- run: npm install
- run: npx nx build mobile-wallet-connector
env:
NEXT_PUBLIC_RECAPTCHA_SITE_KEY_STAGING: ${{ secrets.RECAPTCHA_SITE_KEY_STAGING }}
NEXT_PUBLIC_ENV: staging

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -36,4 +43,4 @@ jobs:
- name: Deploy to Lambda Function
run: |
npm install --prefix .github/workflows/cdk
APPNAME=mobile-wallet-connector APPID=MobileWalletConnector QUALIFIER=Garage NEXT_PUBLIC_ENV:staging NEXT_PUBLIC_RECAPTCHA_SITE_KEY_STAGING=${{ secrets.RECAPTCHA_SITE_KEY_STAGING }} npm run --prefix .github/workflows/cdk cdk:deploy deploy -- --require-approval never
APPNAME=mobile-wallet-connector APPID=MobileWalletConnector QUALIFIER=Garage NEXT_PUBLIC_ENV=staging NEXT_PUBLIC_RECAPTCHA_SITE_KEY_STAGING=${{ secrets.RECAPTCHA_SITE_KEY_STAGING }} npm run --prefix .github/workflows/cdk cdk:deploy deploy -- --require-approval never
2 changes: 1 addition & 1 deletion apps/mobile-wallet-connector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ARG NEXT_PUBLIC_ENV
ARG NEXT_PUBLIC_RECAPTCHA_SITE_KEY_STAGING

# Build the production app
RUN npx nx build mobile-wallet-connector --skip-nx-cache
RUN npx nx build mobile-wallet-connector

FROM base as runtime

Expand Down

0 comments on commit da83d83

Please sign in to comment.