2023-12-12 17:29:16 +01:00
|
|
|
name: build configuration
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-01-04 15:36:50 +01:00
|
|
|
types: [opened, synchronize, edited, reopened]
|
2023-12-12 17:29:16 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2023-12-18 15:49:51 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-12-12 17:29:16 +01:00
|
|
|
|
|
|
|
jobs:
|
2023-12-15 22:18:33 +01:00
|
|
|
build_compute01:
|
2023-12-15 20:12:50 +01:00
|
|
|
runs-on: nix
|
2023-12-12 17:29:16 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2023-12-15 22:18:33 +01:00
|
|
|
- name: Build compute01
|
2023-12-12 17:29:16 +01:00
|
|
|
run: |
|
|
|
|
# Enter the shell
|
2024-02-01 13:40:10 +01:00
|
|
|
nix-shell --run 'colmena build --on compute01'
|
2023-12-15 22:18:33 +01:00
|
|
|
|
|
|
|
build_storage01:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build storage01
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
2024-02-01 13:40:10 +01:00
|
|
|
nix-shell --run 'colmena build --on storage01'
|
2023-12-15 22:18:33 +01:00
|
|
|
|
2024-01-10 15:00:18 +01:00
|
|
|
build_vault01:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build vault01
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
2024-02-01 13:40:10 +01:00
|
|
|
nix-shell --run 'colmena build --on vault01'
|
2024-01-10 15:00:18 +01:00
|
|
|
|
2023-12-15 22:18:33 +01:00
|
|
|
build_web01:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build web01
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
2024-02-01 13:40:10 +01:00
|
|
|
nix-shell --run 'colmena build --on web01'
|
2024-01-11 12:45:01 +01:00
|
|
|
|
|
|
|
build_web02:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build web02
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
2024-02-01 13:40:10 +01:00
|
|
|
nix-shell --run 'colmena build --on web02'
|
2024-02-21 01:48:29 +01:00
|
|
|
|
|
|
|
build_rescue01:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build rescue01
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
|
|
|
nix-shell --run 'colmena build --on rescue01'
|
2024-04-12 19:53:02 +02:00
|
|
|
|
2024-07-24 12:32:39 +02:00
|
|
|
build_geo01:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build geo01
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
|
|
|
nix-shell --run 'colmena build --on geo01'
|
|
|
|
|
|
|
|
build_geo02:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build geo02
|
|
|
|
run: |
|
|
|
|
# Enter the shell
|
|
|
|
nix-shell --run 'colmena build --on geo02'
|
|
|
|
|
|
|
|
push_to_cache_compute01:
|
2024-04-12 19:53:02 +02:00
|
|
|
runs-on: nix
|
|
|
|
needs:
|
|
|
|
- build_compute01
|
2024-07-24 12:32:39 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "compute01" ]'
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_compute01
|
|
|
|
path: uploaded.txt
|
|
|
|
|
|
|
|
push_to_cache_storage01:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
2024-04-12 19:53:02 +02:00
|
|
|
- build_storage01
|
2024-07-24 12:32:39 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "storage01" ]'
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_storage01
|
|
|
|
path: uploaded.txt
|
|
|
|
|
|
|
|
push_to_cache_rescue01:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
|
|
|
- build_rescue01
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "rescue01" ]'
|
|
|
|
|
2024-08-04 16:13:54 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_rescue01
|
|
|
|
path: uploaded.txt
|
|
|
|
|
2024-07-24 12:32:39 +02:00
|
|
|
push_to_cache_geo01:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
|
|
|
- build_geo01
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "geo01" ]'
|
|
|
|
|
2024-08-04 16:13:54 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_geo01
|
|
|
|
path: uploaded.txt
|
|
|
|
|
2024-07-24 12:32:39 +02:00
|
|
|
push_to_cache_geo02:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
|
|
|
- build_geo02
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "geo02" ]'
|
|
|
|
|
2024-08-04 16:13:54 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_geo02
|
|
|
|
path: uploaded.txt
|
|
|
|
|
2024-07-24 12:32:39 +02:00
|
|
|
push_to_cache_web01:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
2024-04-12 19:53:02 +02:00
|
|
|
- build_web01
|
2024-07-24 12:32:39 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
|
|
|
run: nix-shell --run push-to-nix-cache
|
|
|
|
env:
|
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "web01" ]'
|
|
|
|
|
2024-08-04 16:13:54 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_web01
|
|
|
|
path: uploaded.txt
|
|
|
|
|
2024-07-24 12:32:39 +02:00
|
|
|
push_to_cache_web02:
|
|
|
|
runs-on: nix
|
|
|
|
needs:
|
2024-04-12 19:53:02 +02:00
|
|
|
- build_web02
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Push to cache
|
2024-07-24 12:32:39 +02:00
|
|
|
run: nix-shell --run push-to-nix-cache
|
2024-04-12 19:53:02 +02:00
|
|
|
env:
|
2024-07-24 12:32:39 +02:00
|
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
|
|
STORE_USER: "admin"
|
|
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
|
|
NODES: '[ "web02" ]'
|
2024-08-04 16:13:54 +02:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: outputs_web02
|
|
|
|
path: uploaded.txt
|