Traefik verifies OpenBao's certificate against the internal CA. Helm doesn't wait for readiness because the pods stay sealed until they are unsealed by hand.
99 lines
2.5 KiB
YAML
99 lines
2.5 KiB
YAML
name: Deploy Openbao
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "06-openbao/**"
|
|
- ".gitea/workflows/06-deploy-openbao.yaml"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "06-openbao/**"
|
|
- ".gitea/workflows/**"
|
|
|
|
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: Checkout Stack Config
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: kasun/homelab-pulumi-config
|
|
ref: main
|
|
token: ${{ secrets.PULUMI_CONFIG_REPO_TOKEN }}
|
|
path: .pulumi-config
|
|
persist-credentials: false
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
working-directory: 06-openbao
|
|
|
|
- name: Preview
|
|
uses: pulumi/actions@v5
|
|
with:
|
|
command: preview
|
|
stack-name: dev
|
|
work-dir: 06-openbao
|
|
cloud-url: ${{ secrets.PULUMI_BACKEND_URL }}
|
|
env:
|
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|
|
|
|
deploy:
|
|
name: Pulumi Deploy
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push' || 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: Checkout Stack Config
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: kasun/homelab-pulumi-config
|
|
ref: main
|
|
token: ${{ secrets.PULUMI_CONFIG_REPO_TOKEN }}
|
|
path: .pulumi-config
|
|
persist-credentials: false
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
working-directory: 06-openbao
|
|
|
|
- name: Refresh State
|
|
uses: pulumi/actions@v5
|
|
with:
|
|
command: refresh
|
|
stack-name: dev
|
|
work-dir: 06-openbao
|
|
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: 06-openbao
|
|
cloud-url: ${{ secrets.PULUMI_BACKEND_URL }}
|
|
env:
|
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }} |