CD #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . |