Files
hla_framework_bd/.gitea/workflows/ioc.yml
labrec_b 16eac5cd08
Build and Publish Site / docker (push) Successful in 4s
Feature/ioc on cicd runner (#71)
Run `ioc ...` from cicd runner, remove ansible and cli commands
Reviewed-on: #71
2026-08-25 14:34:31 +02:00

57 lines
1.4 KiB
YAML

name: Ioc
# Manually install / start / restart iocs.
# The ioc files are read from the deployed dir on /sls,
# so the service has to be deployed (see the 'Deploy' workflow) beforehand.
on:
workflow_dispatch:
inputs:
action:
description: 'What to do with the ioc(s)'
type: choice
required: true
default: 'install'
options:
- install
- restart
- start
service:
description: "Service name in lower case, or 'all' for every service"
type: string
required: true
agebd_env:
description: 'Environment'
type: choice
required: true
default: 'dev'
options:
- dev
- prod
env:
UV_CACHE_DIR: /var/cache/uv
UV_LINK_MODE: hardlink
jobs:
ioc-dev:
if: ${{ inputs.agebd_env == 'dev' }}
runs-on: hla-dev
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run ioc ${{ inputs.action }}
run: |
./.gitea/scripts/ioc-for-services.sh "${{ inputs.action }}" "${{ inputs.service }}" "dev"
ioc-prod:
if: ${{ inputs.agebd_env == 'prod' }}
runs-on: hla-prod
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run ioc ${{ inputs.action }}
run: |
./.gitea/scripts/ioc-for-services.sh "${{ inputs.action }}" "${{ inputs.service }}" "prod"