diff --git a/.github/workflows/actions_onlymain.yml b/.github/workflows/actions_onlymain.yml index c13f8998..7b92c8e9 100644 --- a/.github/workflows/actions_onlymain.yml +++ b/.github/workflows/actions_onlymain.yml @@ -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: '' # 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 diff --git a/werf.yaml b/werf.yaml index 0cbfd087..325dbe52 100644 --- a/werf.yaml +++ b/werf.yaml @@ -1,5 +1,5 @@ configVersion: 1 -project: "docs-rarimo" +project: "docs" --- image: builder from: node:18-alpine3.18