From ed13003030953f8dd9146d1f64413fcb98204e4f Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Fri, 7 Feb 2025 20:35:43 +0100 Subject: [PATCH] Add a continous deployment workflow --- .github/workflows/cd.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/cd.yaml diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 0000000..d23d1ab --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,22 @@ +# Deploy the latest images through docker compose to explorer.hydra.family +name: "CD" +on: + workflow_run: + workflows: ["Docker"] + branches: [ "master", "multi-version-explorer-deployment" ] + types: + - completed + workflow_dispatch: + +jobs: + explorer: + name: "Deploy" + runs-on: explorer + steps: + - name: 📥 Checkout repository + uses: actions/checkout@v4 + + - name: ⛄ Deploy with nixos + run: | + # TODO: update nixos config to docker pull + /run/current-system/sw/bin/nixos-rebuild switch --flake .