Build and Publish Site / docker (push) Successful in 4s
Run `ioc ...` from cicd runner, remove ansible and cli commands Reviewed-on: #71
57 lines
1.4 KiB
YAML
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"
|