Skip to content

Increase task instance size #3

Increase task instance size

Increase task instance size #3

Workflow file for this run

---
name: Backup the database with fac-backup-utility
### Common Commands:
# ./fac-backup-util.sh v0.1.3 initial_backup
# ./fac-backup-util.sh v0.1.3 deploy_backup
on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
options:
- 'dev'
- 'preview'
- 'staging'
- 'production'
util_version:
description: Version for fac backup utility to use (ex. vX.Y.Z)
required: true
type: string
backup_operation:
description: Operation for fac-backup-utility
required: true
type: choice
options:
- 'initial_backup'
- 'deploy_backup'
push:
branches: [as/db-backup-util]
jobs:
fac-backup:
name: Perform Database Backup
runs-on: ubuntu-latest
# environment: ${{ inputs.environment }}
environment: "preview"
env:
# space: ${{ inputs.environment }}
space: "preview"
util_version: v0.1.3
backup_operation: scheduled_backup
steps:
- name: Backup FAC Database and Sync Media
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsa-tts-oros-fac
cf_space: ${{ env.space }}
#command: cf run-task gsa-fac -k 7G -m 3G --name deploy_backup_util --command "./fac-backup-util.sh ${{ inputs.util_version }} ${{ inputs.backup_operation }}"
command: cf run-task gsa-fac -k 7G -m 3G --name scheduled_backup_util --command "./fac-backup-util.sh ${{ env.util_version }} ${{ env.backup_operation }}"