Skip to content

Commit

Permalink
Merge pull request #21 from dl-solarity/test-env
Browse files Browse the repository at this point in the history
Add .env to ci
  • Loading branch information
alexvarko authored Feb 5, 2024
2 parents 00494bc + ccf58e8 commit 2444d24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
echo "${{ secrets.STAGE_ENV }}" > .env.deploy
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --dev
stage-deploy:
name: Deploy on stage
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Run Build
run: |
. $(werf ci-env github --as-file)
echo "${{ secrets.PROD_ENV }}" > .env
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME --dev
# prod-deploy:
# name: Deploy on prod
Expand Down
1 change: 1 addition & 0 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ shell:
- cd /app
#- yarn autoclean --init
#- yarn autoclean --force
- mv .env.deploy .env
- npm install
setup: # Для стадии Setup.
- cd /app
Expand Down

0 comments on commit 2444d24

Please sign in to comment.