Skip to content

valiantlynx is deploying πŸš€πŸš€πŸš€ #204

valiantlynx is deploying πŸš€πŸš€πŸš€

valiantlynx is deploying πŸš€πŸš€πŸš€ #204

Workflow file for this run

name: Deploy
run-name: ${{ github.actor }} is deploying πŸš€πŸš€πŸš€
on:
workflow_dispatch:
workflow_run:
workflows: ["svelte-altlokalt"] # This triggers the deployment after ollama-docker workflow completes
types:
- completed
env:
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
build-infra:
name: terraform-ci-cd
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform Init
id: init
run: terraform init
working-directory: ./terraform
- name: Terraform Validate
id: validate
run: terraform validate
working-directory: ./terraform
- name: Terraform Plan
id: plan
run: terraform plan
working-directory: ./terraform
- name: Terraform Apply
id: apply
run: terraform apply --auto-approve
working-directory: ./terraform