From 391e316e42be3357c585ecfc93a855c9733b53eb Mon Sep 17 00:00:00 2001 From: Oleksandr Varchenko <88536216+alexvarko@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:13:57 +0300 Subject: [PATCH] Update tag.yaml --- .github/workflows/tag.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 9d00aec..669f005 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -31,3 +31,19 @@ jobs: run: | . $(werf ci-env github --as-file) werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME + 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/solarity-stage-webclient webclient=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME -n stage