-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (59 loc) · 1.9 KB
/
fac-check-tables.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
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]
jobs:
fac-check-tables:
name: Check tables in FAC Database
runs-on: ubuntu-latest
# environment: ${{ inputs.environment }}
environment: preview
env:
# space: ${{ inputs.environment }}
space: preview
steps:
- name: Check tables in ${{ env.space }}
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 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"