Skip to content

Commit

Permalink
introducing per env configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AmebaBrain committed Jun 9, 2024
1 parent 25bad95 commit 586af3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:

deploy_dev:
if: github.ref == 'refs/heads/develop'
needs: build
uses: ./.github/workflows/deploy_job.yml
with:
REMOTE_HOST: ${{ vars.DEV_SERVER_HOST }}
Expand All @@ -68,6 +69,7 @@ jobs:

deploy_prd:
if: github.ref == 'refs/heads/master'
needs: build
uses: ./.github/workflows/deploy_job.yml
with:
REMOTE_HOST: ${{ vars.PRD_SERVER_HOST }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/develop' && 'dev' || github.ref == 'refs/heads/master' && 'prd' }}
needs: build

steps:
- name: Print environment
Expand Down

0 comments on commit 586af3a

Please sign in to comment.