2023-12-10 10:34:39 +01:00
|
|
|
name: infrastructure
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
- "master"
|
|
|
|
- "dev"
|
|
|
|
paths-ignore:
|
|
|
|
- "**/README.md"
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "*"
|
|
|
|
schedule:
|
|
|
|
- cron: "0 9 * * 2" # every tuesday at 9:00 https://crontab.guru/#0_7_*_*_1
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
image:
|
|
|
|
name: infrastructure
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
|
|
- name: "Checkout Code"
|
2023-12-10 10:35:08 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-12-10 10:34:39 +01:00
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
fetch-depth: 0
|
2024-08-23 14:12:41 +02:00
|
|
|
- name: "Update server image"
|
|
|
|
run: make update-docker
|
2023-12-10 10:34:39 +01:00
|
|
|
- name: "Build server"
|
2024-08-23 14:12:41 +02:00
|
|
|
run: make build
|
|
|
|
# - name: "Start server"
|
|
|
|
# run: make start
|
2024-08-23 17:19:24 +02:00
|
|
|
- name: "Logs server"
|
|
|
|
run: make logs
|
|
|
|
- name: "State server"
|
|
|
|
run: make state
|
2024-08-23 14:12:41 +02:00
|
|
|
- name: "Stop server"
|
|
|
|
run: make stop
|
|
|
|
- name: "Down server"
|
|
|
|
run: make down
|
|
|
|
- name: "Clean server"
|
|
|
|
run: make clean
|
|
|
|
- name: "Purge server"
|
|
|
|
run: make purge
|