Skip to content

Commit

Permalink
Add a continous deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Feb 7, 2025
1 parent 0095712 commit ed13003
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit ed13003

Please sign in to comment.