Webforge server defined as code with OpenToFu and GHA workflow for CI and CD #1
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
# Workflow to continuously integrate and deploy OpenToFu plan for | |
# the core resources of Tahoe-LAFS (e.g.: DNS, self-hosted vps, ...) | |
name: ToFu - core | |
concurrency: tf-core_state | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/_tf.yml' | |
- '.github/workflows/tf-core.yml' | |
- 'tf/core/**' | |
pull_request: | |
paths: | |
- '.github/workflows/_tf.yml' | |
- '.github/workflows/tf-core.yml' | |
- 'tf/core/**' | |
workflow_dispatch: | |
jobs: | |
call-workflow-passing-data: | |
# Call the re-usable ToFu workflow | |
uses: ./.github/workflows/_tf.yml | |
with: | |
tf_version: '1.9.0' | |
tf_dir: tf/core | |
apply_on_branch: 'main' | |
aws_default_region: 'eu-central-1' | |
secrets: | |
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
hcloud_token: ${{ secrets.HCLOUD_TOKEN }} |