Skip to content

feat: add Sailr workflow profiles and staged CI deployment flow #13

feat: add Sailr workflow profiles and staged CI deployment flow

feat: add Sailr workflow profiles and staged CI deployment flow #13

Workflow file for this run

name: Sailr Workflow - ci
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
inputs:
run_ci_build:
description: "Run experimental ci-build profile"
required: false
default: "false"
jobs:
sailr-workflow:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile:
- ci
- ci-build-plan
- ci-generate
- ci-deploy-plan
steps:
- uses: actions/checkout@v4
- name: Install Sailr
run: cargo install --path .
- name: Run Sailr workflow profile
run: sailr workflow run ${{ matrix.profile }} --non-interactive
sailr-ci-build:
if: github.event_name == 'workflow_dispatch' && inputs.run_ci_build == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Sailr
run: cargo install --path .
#- name: Setup Kubeconfig
# run: |
# mkdir -p ~/.kube
# echo "${{ secrets.DEVELOP_CLUSTER_KUBECONFIG }}" > ~/.kube/config
# chmod 600 ~/.kube/config
- name: Run experimental CI build
run: sailr workflow run ci-build --non-interactive