From 2bc95991714fcb4437390a98ddcac5cd550bb2cc Mon Sep 17 00:00:00 2001 From: Heiko Burkhardt Date: Mon, 21 Aug 2023 11:18:03 +0200 Subject: [PATCH] env test --- .github/workflows/on-push.yml | 30 ++++++++++++++--------------- packages/messenger-demo/Dockerfile | 10 ---------- packages/messenger-demo/src/App.tsx | 2 ++ 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index a83873484..f2a996b18 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -168,24 +168,25 @@ jobs: messenger-demo-deploy: runs-on: ubuntu-latest if: github.ref == 'refs/heads/new-ui' - needs: - [ - offchain-resolver-test, - lib-storage-test, - lib-shared-test, - lib-profile-test, - lib-messaging-test, - lib-delivery-test, - lib-crypto-test, - integration-test, - backend-test, - code-quality, - ] + # needs: + # [ + # offchain-resolver-test, + # lib-storage-test, + # lib-shared-test, + # lib-profile-test, + # lib-messaging-test, + # lib-delivery-test, + # lib-crypto-test, + # integration-test, + # backend-test, + # code-quality, + # ] steps: # Check-out your repository. - name: Checkout uses: actions/checkout@v2 - + - name: Create env file + run: echo "REACT_APP_ETHEREUM_PROVIDER=${{ secrets.HEROKU_EMAIL }}" >> ./packages/messenger-demo/.env - name: Build, Push and Release a Docker container to Heroku. # Your custom step name uses: gonuit/heroku-docker-deploy@v1.3.3 # GitHub action name (leave it as it is). with: @@ -211,7 +212,6 @@ jobs: # (Optional, default: "Dockerfile") # Dockerfile name. dockerfile_name: ./packages/messenger-demo/Dockerfile - # (Optional, default: "web") # Select the process type for which you want the docker container to be uploaded. # By default, this argument is set to "web". diff --git a/packages/messenger-demo/Dockerfile b/packages/messenger-demo/Dockerfile index 0886e037c..9e3a00f6d 100644 --- a/packages/messenger-demo/Dockerfile +++ b/packages/messenger-demo/Dockerfile @@ -1,16 +1,6 @@ FROM node:18-alpine WORKDIR /app COPY . . -ENV REACT_APP_DEFAULT_SERVICE REACT_APP_DEFAULT_SERVICE -ENV REACT_APP_ETHEREUM_PROVIDER REACT_APP_ETHEREUM_PROVIDER -ENV REACT_APP_WALLET_CONNECT_PROJECT_ID REACT_APP_WALLET_CONNECT_PROJECT_ID -ENV REACT_APP_ADDR_ENS_SUBDOMAIN REACT_APP_ADDR_ENS_SUBDOMAIN -ENV REACT_APP_BACKEND REACT_APP_BACKEND -ENV REACT_APP_DEFAULT_DELIVERY_SERVICE REACT_APP_DEFAULT_DELIVERY_SERVICE -ENV REACT_APP_PROFILE_BASE_URL REACT_APP_PROFILE_BASE_URL -ENV REACT_APP_RESOLVER_BACKEND REACT_APP_RESOLVER_BACKEND -ENV REACT_APP_USER_ENS_SUBDOMAIN REACT_APP_USER_ENS_SUBDOMAIN -ENV RESOLVER_ADDR RESOLVER_ADDR RUN apk add --update python3 make g++\ && rm -rf /var/cache/apk/* RUN yarn install diff --git a/packages/messenger-demo/src/App.tsx b/packages/messenger-demo/src/App.tsx index 20b8e6d8f..3ec53dd0a 100644 --- a/packages/messenger-demo/src/App.tsx +++ b/packages/messenger-demo/src/App.tsx @@ -4,6 +4,8 @@ import 'bootstrap/dist/js/bootstrap.bundle.min.js'; import { DM3 } from 'messenger-widget'; function App() { + console.log(process.env.REACT_APP_ETHEREUM_PROVIDER); + console.log(process.env.REACT_APP_DEFAULT_SERVICE); const props: any = { defaultContact: 'help.dm3.eth', defaultServiceUrl: process.env.REACT_APP_DEFAULT_SERVICE,