From a385b45887b333e3cfdea2a5f1a1ca321d755a29 Mon Sep 17 00:00:00 2001 From: Oleksandr Varchenko <88536216+alexvarko@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:52:29 +0200 Subject: [PATCH] Update tag.yaml --- .github/workflows/tag.yaml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 88bd4b2..8e317ec 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -30,21 +30,17 @@ jobs: - name: Run Build run: | . $(werf ci-env github --as-file) - echo "${{ secrets.PROD_ENV }}" > .env + 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 - # runs-on: ubuntu-latest - # steps: - # - name: Run echo - # run: | - # echo "Tag was created - deploying on prod" - # echo tag = $GITHUB_REF_NAME - # - name: ConfigCreate - # run: | - # mkdir ~/.kube/ - # echo "${{ secrets.KUBECONFIG }}" > config - # mv config ~/.kube/ - # ls ~/.kube/ - # kubectl set image deployment/ -n prod \ No newline at end of file + prod-deploy: + name: Deploy on prod + needs: converge + runs-on: ubuntu-latest + steps: + - name: ConfigCreate + run: | + mkdir ~/.kube/ + echo "${{ secrets.KUBECONFIG }}" > config + mv config ~/.kube/ + ls ~/.kube/ + kubectl set image deployment/solarity-docs-prod-webclient webclient=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME -n docs-prod