summaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy.yaml')
-rw-r--r--.github/workflows/deploy.yaml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 695d63c..98b3b1d 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -1,21 +1,21 @@
name: Deploy infrastructure
on:
- check_suite:
- types: [completed]
+ push:
+ branches: [main]
workflow_dispatch:
jobs:
+ ci:
+ uses: ./.github/workflows/ci.yaml
+ secrets: inherit
+
nixos:
+ needs: ci
+
name: Deploy NixOS systems
runs-on: ubuntu-latest
- # https://github.com/sellout/bash-strict-mode/commit/9bf1d65c2f786a9887facfcb81e06d8b8b5f4667
- if: github.event.check_suite.app.name == 'Garnix CI'
- && github.event.check_suite.conclusion == 'success'
- && github.event.check_suite.latest_check_runs_count >= 10
- && github.event.check_suite.head_branch == 'main'
-
concurrency:
group: deploy
cancel-in-progress: true
@@ -49,9 +49,9 @@ jobs:
--command deploy
opentofu:
- name: Apply OpenTofu plan
needs: nixos
+ name: Apply OpenTofu plan
runs-on: ubuntu-latest
concurrency: