Test terraform #2
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
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 |