Skip to content

Fix auto redeploy runner #14

Fix auto redeploy runner

Fix auto redeploy runner #14

Workflow file for this run

name: Deploy
on:
push:
branches:
- deploy-opensource-infra
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}
jobs:
run:
name: terraform
runs-on:
- self-hosted
- linux
- cloud
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: opentofu/setup-opentofu@v1
with:
tofu_version: 1.8.2
- uses: arduino/setup-task@v2
- uses: nightstory/setup-yc@v1
- run: |
../scripts/tofu-opensource.sh --tofurc --cleanup --init --target data.shell_script.kubeconfig --apply --approve
ls -la ./kubeconfig.conf && sleep 10
../scripts/tofu-opensource.sh --tofurc --cleanup --init --apply --approve
working-directory: ./deploy/terraform
env:
CI: "true"
CLOUD_ID: ${{ vars.CLOUD_ID }}
FOLDER_ID: ${{ vars.FOLDER_ID }}
DOMAIN: ${{ vars.DOMAIN }}
TOFU_MIRROR: "terraform-mirror.yandexcloud.net"