Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Feb 5, 2024
1 parent 83ec3fe commit d46d698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ jobs:
terraform init
echo "Applying Terraform..."
terraform apply -auto-approve
echo "Starting index page..."
echo "<html><head><title>Butane</title><body><h1>Butane</h1><p>Deployed by Terraform</p><ul>" > ../.build/index.html
echo "Getting Terraform JSON outputs..."
for i in "plex" "swarm_manager" "swarm_worker"; do
echo " ... ${i}"
terraform output -raw ${i} > ../.build/${i}.json
echo "<li><a href=\"${i}.json\">${i}</a></li>" >> ../.build/index.html
done
echo "Closing index page..."
echo "</ul></body></html>" >> ../.build/index.html
popd
- name: Deploy
Expand Down

0 comments on commit d46d698

Please sign in to comment.