forked from DGNum/infrastructure
200 lines
5.1 KiB
YAML
200 lines
5.1 KiB
YAML
name: build configuration
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, edited, reopened]
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build_and_cache_compute01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "compute01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_compute01
|
|
path: paths.txt
|
|
|
|
build_and_cache_storage01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "storage01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_storage01
|
|
path: paths.txt
|
|
|
|
build_and_cache_rescue01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "rescue01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_rescue01
|
|
path: paths.txt
|
|
|
|
build_and_cache_geo01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "geo01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_geo01
|
|
path: paths.txt
|
|
|
|
build_and_cache_geo02:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "geo02"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_geo02
|
|
path: paths.txt
|
|
|
|
build_and_cache_vault01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "vault01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_vault01
|
|
path: paths.txt
|
|
|
|
build_and_cache_web01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "web01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_web01
|
|
path: paths.txt
|
|
|
|
build_and_cache_web02:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "web02"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_web02
|
|
path: paths.txt
|
|
|
|
build_and_cache_web03:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "web03"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_web02
|
|
path: paths.txt
|
|
|
|
build_and_cache_bridge01:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build and cache the node
|
|
run: nix-shell --run cache-node
|
|
env:
|
|
STORE_ENDPOINT: "https://tvix-store.dgnum.eu/infra-signing/"
|
|
STORE_USER: "admin"
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
BUILD_NODE: "bridge01"
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: outputs_web02
|
|
path: paths.txt
|