Skip to content

Commit

Permalink
try dryrun helm deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ihordiachenko committed Dec 7, 2023
1 parent 0fb8cea commit fa20017
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/actions_onlymain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,27 @@ jobs:
. $(werf ci-env github --as-file)
werf export --dev web --tag $IMAGE_NAME
# deploy:
# name: Deploy
# needs: converge
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: ConfigCreate
# run: |
# mkdir ~/.kube/
# echo "${{ secrets.K8SCONFIG_DEV }}" | base64 -d > config
# mv config ~/.kube/
# helm upgrade -i "docs" ".helm" --set global.IngressDomain=staging.${DOMAIN} --set "image.repository=ghcr.io/${$GITHUB_REPOSITORY}" --set "image.tag=${GITHUB_SHA}" --create-namespace --namespace docs-staging
deploy:
name: Deploy
needs: converge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: '<version>' # default is latest (stable)
token: ${{ secrets.GITHUB_TOKEN }} # only needed if version is 'latest'
id: install

- name: ConfigCreate
run: |
mkdir ~/.kube/
echo "${{ secrets.K8SCONFIG_DEV }}" | base64 -d > config
mv config ~/.kube/
helm upgrade -i "docs" ".helm" --set global.IngressDomain=staging.${DOMAIN} --set "image.repository=ghcr.io/${$GITHUB_REPOSITORY}" --set "image.tag=${GITHUB_SHA}" --namespace docs-staging --dry-run --debug
# --create-namespace
2 changes: 1 addition & 1 deletion werf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
configVersion: 1
project: "docs-rarimo"
project: "docs"
---
image: builder
from: node:18-alpine3.18
Expand Down

0 comments on commit fa20017

Please sign in to comment.