Skip to content

Commit

Permalink
using proper var source
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkats committed Feb 23, 2024
1 parent df8209d commit c7ef493
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:

env:
REFERENCE: ${{ github.event.pull_request.head.sha || github.event.push.head_commit.id }}
REACT_APP_API_SERVER: ${{ env.REACT_APP_API_SERVER != '' && env.REACT_APP_API_SERVER || vars.REACT_APP_API_SERVER }}

jobs:
build:
Expand All @@ -26,7 +27,7 @@ jobs:
contents: read
strategy:
matrix:
image: [build, backend]
image: [backend]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -44,10 +45,10 @@ jobs:
- run: make build-${{ matrix.image }}
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
LOG_LEVEL: ${{ vars.SERVER_LOG_LEVEL }}
REACT_APP_API_SERVER: ${{ vars.REACT_APP_API_SERVER }}
PUBLIC_URL: ${{ vars.PUBLIC_URL }}
API_BASE_URL: ${{ vars.API_BASE_URL }}
LOG_LEVEL: ${{ env.SERVER_LOG_LEVEL != '' && env.SERVER_LOG_LEVEL || vars.SERVER_LOG_LEVEL }}
REACT_APP_API_SERVER: ${{ env.REACT_APP_API_SERVER }}
PUBLIC_URL: ${{ env.PUBLIC_URL != '' && env.PUBLIC_URL || vars.PUBLIC_URL }}
API_BASE_URL: ${{ env.API_BASE_URL != '' && env.API_BASE_URL || vars.API_BASE_URL }}


deploy:
Expand All @@ -58,7 +59,7 @@ jobs:
contents: read
environment:
name: ${{ github.event.inputs.env }}
url: ${{ vars.PUBLIC_URL }}
url: ${{ env.PUBLIC_URL != '' && env.PUBLIC_URL || vars.PUBLIC_URL }}
env:
ENVIRONMENT: ${{ github.event.inputs.env }}
steps:
Expand All @@ -84,4 +85,4 @@ jobs:
ARGO_CD_SERVER: ${{ secrets.ARGO_CD_SERVER }}
ARGO_CD_USERNAME: ${{ secrets.ARGO_CD_USERNAME }}
ARGO_CD_PASSWORD: ${{ secrets.ARGO_CD_PASSWORD }}
API_BASE_URL: ${{ vars.API_BASE_URL }}
API_BASE_URL: ${{ env.API_BASE_URL != '' && env.API_BASE_URL || vars.API_BASE_URL }}

0 comments on commit c7ef493

Please sign in to comment.