Skip to content

Commit

Permalink
fix creating .env file for terraform workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ER-Radi committed Feb 7, 2024
1 parent 9868928 commit c8bcd88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/terraform-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ jobs:
run: echo "::set-output name=server_public_ip::$(cd terraform; terraform output server_public_ip)"
if: success()

- name: Create .env file
env:
HOST_URL: ${{ steps.server_public_ip.outputs.server_public_ip }}
PLM_CLIENT_ID: ${{ secrets.STAGING_CLIENT_ID }}
run: |
cat << EOF > .env
NEXT_PUBLIC_BASE_APP=/api
NEXT_PUBLIC_HOST_URL=$HOST_URL
NEXT_PUBLIC_PLM_HOST=https://prof.parlemonde.org
NEXT_PUBLIC_CLIENT_ID=$PLM_CLIENT_ID
EOF
- name: Build Docker Image
run: |
docker build -t 1village .
Expand Down

0 comments on commit c8bcd88

Please sign in to comment.