Skip to content

gofireflyio/fireflyci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 

Repository files navigation

FireflyCI for GitHub Actions

FireflyCI is a command line interface for the FireflyCI Firefly actions

The init step must output into a file

- name: Terraform Init
  id: terraform-init
  run: terraform init >& init.log
  continue-on-error: true

The plan step must output into a file

- 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

FireflyCI Post-Plan

- 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 }}

The apply must output into a file

- name: Terraform Apply
  id: apply
  run: terraform apply -auto-approve -json > apply_log.jsonl
  continue-on-error: true

FireflyCI Post-Apply

- 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 }}

Releases

No releases published

Packages

No packages published