Skip to content

Continuous Delivery #13

Continuous Delivery

Continuous Delivery #13

name: "Continuous Delivery"
on:
workflow_run:
workflows: ["Continuous Integration"]
types:
- completed
jobs:
terraform:
strategy:
matrix:
project:
- ee
- tr
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: echo -n "$SOPS_GPG_KEY_B64E" | base64 -d | gpg --import
env:
SOPS_GPG_KEY_B64E: ${{ secrets.SOPS_GPG_KEY_B64E }}
- run: nix-shell --run "task ${{ matrix.project }}:init"
- run: nix-shell --run "task ${{ matrix.project }}:plan"
# - run: nix-shell --run "task ${{ matrix.project }}:apply -- -auto-approve"
- run: echo 'I would be deploying right now'