Skip to content

Commit d0516d0

Browse files
Fix the action files
1 parent f58a44c commit d0516d0

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/production.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ jobs:
1818
registry: ghcr.io
1919
username: ${{ github.actor }}
2020
password: ${{ secrets.GITHUB_TOKEN }}
21-
- name: Set config
22-
run: mv frontend/public/config.prod.js frontend/public/config.js
21+
- name: Set up environment variables
22+
run: |
23+
cat > frontend/.env << EOF
24+
VITE_API_URL=https://login.threefold.me/
25+
VITE_OPENKYC_URL=https://openkyc.threefold.me/
26+
VITE_DEEPLINK=threefold://
27+
EOF
2328
- name: Build the Docker image
2429
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/threefold-connect:production-${{ github.sha }}
2530
- name: Push the Docker image

.github/workflows/staging.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
username: ${{ github.actor }}
1717
password: ${{ secrets.GITHUB_TOKEN }}
1818

19-
- name: Set config
20-
run: mv frontend/public/config.staging.js frontend/public/config.js
19+
- name: Set up environment variables
20+
run: |
21+
cat > frontend/.env << EOF
22+
VITE_API_URL=https://login.staging.threefold.me/
23+
VITE_OPENKYC_URL=https://kyc.staging.threefold.me/
24+
VITE_DEEPLINK=threebot-staging://
25+
EOF
2126
- name: Build the 3botlogin Docker image
2227
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/threefold-connect:staging-${{ github.sha }}
2328
- name: Push the 3botlogin Docker image

0 commit comments

Comments
 (0)