Skip to content

ci: use prebuilt terraform_pipeline #27

ci: use prebuilt terraform_pipeline

ci: use prebuilt terraform_pipeline #27

Workflow file for this run

name: terraform apply
on:
workflow_dispatch:
push:
branches:
- main
jobs:
apply:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v4
- name: Setup Service Account
run: echo $GCP_SERVICE_ACCOUNT > fluentci-086b644d4c53.json
env:
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- name: Run Terraform Init, Validate, Plan and Apply
run: fluentci run terraform_pipeline init validate plan apply
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
GOOGLE_APPLICATION_CREDENTIALS: fluentci-086b644d4c53.json
TF_VERSION: 1.7.3
TF_VAR_gcp_credentials: fluentci-086b644d4c53.json
TF_VAR_gcp_project: fluentci
TF_VAR_cloudflare_api_token: ${{ secrets.CLOUDFLARE_WORKER_TOKEN }}
TF_VAR_account_id: fe5b1e2ce9f94f4c0415ab94ce402012
TF_VAR_worker_name: envhub-installer
TF_VAR_secrets: |
{
"cargo_registry_token": "${{ secrets.CARGO_REGISTRY_TOKEN }}",
"cf_aws_access_key_id": "${{ secrets.CF_AWS_ACCESS_KEY_ID }}",
"cf_aws_secret_access_key": "${{ secrets.CF_AWS_SECRET_ACCESS_KEY}}",
"cloudflare_root_key": "${{ secrets.CLOUDFLARE_ROOT_KEY }}",
"cloudflare_worker_token": "${{ secrets.CLOUDFLARE_WORKER_TOKEN }}",
"dagger_cloud_token": "${{ secrets.DAGGER_CLOUD_TOKEN }}",
"deno_deploy_token": "${{ secrets.DENO_DEPLOY_TOKEN }}",
"hex_api_key": "${{ secrets.HEX_API_KEY }}",
"mvola_consumer_key": "${{ secrets.MVOLA_CONSUMER_KEY }}",
"mvola_consumer_secret": "${{ secrets.MVOLA_CONSUMER_SECRET }}",
"netlify_auth_token": "${{ secrets.NETLIFY_AUTH_TOKEN }}",
"pulumi_access_token": "${{ secrets.PULUMI_ACCESS_TOKEN }}",
"shuttle_api_key": "${{ secrets.SHUTTLE_API_KEY }}",
"sonar_token": "${{ secrets.SONAR_TOKEN }}",
"spin_auth_token": "${{ secrets.SPIN_AUTH_TOKEN }}",
"wasmer_token": "${{ secrets.WASMER_TOKEN }}",
}