Skip to content

Commit

Permalink
Update ci env (#44)
Browse files Browse the repository at this point in the history
* Update werf.yaml

* Update actions.yaml

* Update tag.yaml

* Update tag.yaml
  • Loading branch information
alexvarko committed Oct 19, 2023
1 parent 7d6039d commit da4d9fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Run Build
run: |
. $(werf ci-env github --as-file)
echo "${{ secrets.STAGE_ENV }}" > .env.stage
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
5 changes: 3 additions & 2 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
echo $GITHUB_REF_NAME
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
. $(werf ci-env github --as-file)
echo "${{ secrets.PROD_ENV }}" > .env.deploy
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME --dev
prod-deploy:
name: Deploy on prod
needs: converge
Expand Down
2 changes: 1 addition & 1 deletion werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ shell:
- yarn install
setup:
- cd /frontend
- yarn generate --dotenv .env.stage
- yarn generate --dotenv .env.deploy
---
image: web
from: nginx:alpine
Expand Down

0 comments on commit da4d9fd

Please sign in to comment.