-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Deploy" | ||
on: | ||
push: | ||
# branches: | ||
# - main | ||
jobs: | ||
deploy: | ||
strategy: | ||
matrix: | ||
system: ["aarch64-linux", "x86_64-linux"] | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- uses: nix-pizza/infra/.github/workflows/build.yaml@aciceri/ci | ||
- run: | | ||
[ '${{ matrix.system }}' != 'aarch64-linux' ] && exit 0 | ||
source "$(nix build .#inject-secrets --no-link --print-out-paths)"/bin/install-agenix-shell | ||
export TF_VAR_ssh_public_keys="$(nix build .#ssh-public-keys --no-link --print-out-paths)" | ||
nix run .#opentofu -- init | ||
nix run .#opentofu -- apply --auto-approve |
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