Skip to content

Commit

Permalink
Merge pull request #6 from DoraFactory/dora-migrate-vota
Browse files Browse the repository at this point in the history
add env for different branch
  • Loading branch information
VegeBun-csj authored Sep 21, 2024
2 parents 368563e + 2dff8c3 commit 02028a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ jobs:
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Create .env file from secret
- name: Create .env file from secret for other branch
if: github.ref_name != 'main'
run: |
echo "${{ secrets.ENV_CONTENTS }}" > .env
- name: Create .env file from secret for main
if: github.ref_name == 'main'
run: |
echo "${{ secrets.ENV_CONTENTS_MAIN }}" > .env
- name: Build image
env:
BUILD_ARG: ${{ github.ref_name }}
Expand Down

0 comments on commit 02028a0

Please sign in to comment.