Skip to content

Commit

Permalink
Update actions.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvarko authored Oct 9, 2023
1 parent 5514e71 commit 325ac6d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- '**'
- 'ci-auto-deploy'

jobs:
converge:
Expand Down Expand Up @@ -32,14 +32,16 @@ jobs:
. $(werf ci-env github --as-file)
echo "${{ secrets.STAGE_ENV }}" > .env.stage
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --dev
prod-deploy:
name: Deploy on prod
if: ${{ startsWith(github.ref, 'refs/tags/') }}
stage-deploy:
name: Deploy on stage
needs: converge
runs-on: ubuntu-latest
steps:
- name: Run echo
- name: ConfigCreate
run: |
echo "See tag, deploy on prod"
echo tag = $GITHUB_REF_NAME
mkdir ~/.kube/
echo "${{ secrets.KUBECONFIG }}" > config
mv config ~/.kube/
ls ~/.kube/
kubectl set image deployment/solarity-stage-webclient webclient=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA -n stage

0 comments on commit 325ac6d

Please sign in to comment.