Skip to content

Commit

Permalink
Setup check table workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Aug 16, 2024
1 parent 78d954a commit 9095197
Showing 1 changed file with 36 additions and 41 deletions.
77 changes: 36 additions & 41 deletions .github/workflows/fac-check-tables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,46 @@ name: Check existing tables in an environment
### Common Commands:
# ./fac-backup-util.sh v0.1.5 check_tables
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:
# - 'check_tables'
# workflow_call:
# inputs:
# environment:
# required: true
# type: string
# 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: string
push:
branches: [new-relic-logs-update]
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:
- 'check_tables'
workflow_call:
inputs:
environment:
required: true
type: string
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: string
jobs:
fac-check-tables:
name: Check tables in FAC Database
runs-on: ubuntu-latest
# environment: ${{ inputs.environment }}
environment: preview
environment: ${{ inputs.environment }}
env:
# space: ${{ inputs.environment }}
space: preview
space: ${{ inputs.environment }}
steps:
- name: Check tables in ${{ env.space }}
uses: cloud-gov/cg-cli-tools@main
Expand All @@ -55,5 +51,4 @@ jobs:
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsa-tts-oros-fac
cf_space: ${{ env.space }}
# command: cf run-task gsa-fac -k 2G -m 3G --name check_tables --command "./fac-backup-util.sh ${{ inputs.util_version }} ${{ inputs.backup_operation }}"
command: cf run-task gsa-fac -k 2G -m 3G --name check_tables --command "./fac-backup-util.sh v0.1.6 check_tables"
command: cf run-task gsa-fac -k 2G -m 3G --name check_tables --command "./fac-backup-util.sh ${{ inputs.util_version }} ${{ inputs.backup_operation }}"

0 comments on commit 9095197

Please sign in to comment.