diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index f453f9d..ea03ea2 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -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 diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index feaed62..1e81fa3 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -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 diff --git a/werf.yaml b/werf.yaml index 734e3d7..9db2930 100644 --- a/werf.yaml +++ b/werf.yaml @@ -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