Skip to content

Initial commit

Initial commit #1

name: Deploy Staging
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'README.md'
permissions:
contents: read
pull-requests: write
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
environment: staging
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Terraform apply
uses: dflook/terraform-apply@v1
env:
TF_VAR_cf_user: ${{ secrets.CF_USERNAME }}
TF_VAR_cf_password: ${{ secrets.CF_PASSWORD }}
with:
path: terraform/staging
backend_config: >
access_key=${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
secret_key=${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
- name: Deploy app
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsa-tts-devtools-prototyping
cf_space: rahearn
cf_command: push --vars-file config/deployment/staging.yml --var rails_master_key="${{ secrets.RAILS_MASTER_KEY }}" --strategy rolling