c8f606fd20
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 58s
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Has been skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 32s
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Has been skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 56s
Deploy k8s Infra / Pulumi Deploy (pull_request) Has been skipped
82 lines
2.2 KiB
YAML
82 lines
2.2 KiB
YAML
name: Deploy k8s Bootstrap
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "02-k8s-bootstrap/**"
|
|
- ".gitea/workflows/02-deploy-k8s-bootstrap.yaml"
|
|
|
|
jobs:
|
|
preview:
|
|
name: Pulumi Preview
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'pull_request'
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Restore Stack Config
|
|
run: echo "${{ secrets.K8S_BOOTSTRAP_PULUMI_DEV_YAML }}" | base64 -d > 02-k8s-bootstrap/Pulumi.dev.yaml
|
|
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
working-directory: 02-k8s-bootstrap
|
|
|
|
- name: Preview
|
|
uses: pulumi/actions@v5
|
|
with:
|
|
command: preview
|
|
stack-name: dev
|
|
work-dir: 02-k8s-bootstrap
|
|
cloud-url: ${{ secrets.PULUMI_BACKEND_URL }}
|
|
env:
|
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|
|
|
|
deploy:
|
|
name: Bootstrap k3s Cluster
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'workflow_dispatch'
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Restore Stack Config
|
|
run: echo "${{ secrets.K8S_BOOTSTRAP_PULUMI_DEV_YAML }}" | base64 -d > 02-k8s-bootstrap/Pulumi.dev.yaml
|
|
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
working-directory: 02-k8s-bootstrap
|
|
|
|
- name: Refresh State
|
|
uses: pulumi/actions@v5
|
|
with:
|
|
command: refresh
|
|
stack-name: dev
|
|
work-dir: 02-k8s-bootstrap
|
|
cloud-url: ${{ secrets.PULUMI_BACKEND_URL }}
|
|
env:
|
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|
|
|
|
- name: Deploy
|
|
uses: pulumi/actions@v5
|
|
with:
|
|
command: up
|
|
stack-name: dev
|
|
work-dir: 02-k8s-bootstrap
|
|
cloud-url: ${{ secrets.PULUMI_BACKEND_URL }}
|
|
env:
|
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|