Skip to content

Commit

Permalink
Merge pull request #22 from dl-solarity/update-ci
Browse files Browse the repository at this point in the history
Update ci
  • Loading branch information
alexvarko authored Feb 6, 2024
2 parents 2444d24 + a385b45 commit 1bdea83
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 1bdea83

Please sign in to comment.