Skip to content

Updated workflow

Updated workflow #7

Workflow file for this run

name: Build
on:
- push
permissions:
contents: write
jobs:
Build:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Filesystem
run: |
mkdir -p .build
- name: Create Butane YAML with Terraform
run: |
pushd ./terraform
echo "Initialising Terraform..."
terraform init
echo "Applying Terraform..."
terraform apply -auto-approve
echo "Getting Terraform JSON outputs..."
for i in "plex" "swarm_manager" "swarm_worker"; do
echo " ... ${i}"
terraform output -raw ${i} > ../.build/${i}.json
done
popd
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .build