Skip to content

Commit

Permalink
env test
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Aug 22, 2023
1 parent ab99b0f commit 2bc9599
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 25 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] # GitHub action name (leave it as it is).
with:
Expand All @@ -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".
Expand Down
10 changes: 0 additions & 10 deletions packages/messenger-demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/messenger-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2bc9599

Please sign in to comment.