FireflyCI is a command line interface for the FireflyCI Firefly actions
- name: Terraform Init
id: terraform-init
run: terraform init >& init.log
continue-on-error: true
- name: Terraform Plan
id: terraform-plan
run: |
terraform plan -json -out=plan.tmp > plan_log.jsonl && terraform show -json plan.tmp > plan_output.json && terraform show plan.tmp > plan_out_raw.log
continue-on-error: true
- name: FireflyCI Post-Plan
uses: gofireflyio/[email protected]
with:
command: post-plan
init-log-file: init.log
plan-json-log-file: plan_log.jsonl
plan-output-file: plan_output.json
plan-raw-log-file: plan_out_raw.log
workspace: <WORKSPACE_NAME>
context: <WORKING_DIR>
env:
FIREFLY_ACCESS_KEY: ${{ secrets.FIREFLY_ACCESS_KEY }}
FIREFLY_SECRET_KEY: ${{ secrets.FIREFLY_SECRET_KEY }}
- name: Terraform Apply
id: apply
run: terraform apply -auto-approve -json > apply_log.jsonl
continue-on-error: true
- name: FireflyCI Post-Apply
uses: gofireflyio/[email protected]
with:
command: post-apply
apply-log-file: apply_log.jsonl
workspace: <WORKSPACE_NAME>
context: <WORKING_DIR>
env:
FIREFLY_ACCESS_KEY: ${{ secrets.FIREFLY_ACCESS_KEY }}
FIREFLY_SECRET_KEY: ${{ secrets.FIREFLY_SECRET_KEY }}