Skip to content

Commit

Permalink
Add tools and minor updates to cloning workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Spence authored Oct 31, 2024
1 parent 10e77dd commit 4e3569d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/clone-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ jobs:
CF_PASSWORD: CF_MS_PASSWORD
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip' # caching pip dependencies

- name: Install CG Tool
run: pip install git+https://github.com/cloud-gov/cg-manage-rds.git

- name: Share DB Service
uses: cloud-gov/cg-cli-tools@main
Expand All @@ -40,7 +49,7 @@ jobs:
cf_password: ${{ secrets.CF_MS_PASSWORD }}
cf_org: cisa-dotgov
cf_space: ${{ env.SOURCE_ENVIRONMENT }}
command: pip install git+https://github.com/cloud-gov/cg-manage-rds.git && cg-manage-rds clone getgov-${{ env.SOURCE_ENVIRONMENT }}-database getgov-${{ env.DESTINATION_ENVIRONMENT }}-database
command: cg-manage-rds clone getgov-${{ env.SOURCE_ENVIRONMENT }}-database getgov-${{ env.DESTINATION_ENVIRONMENT }}-database

- name: Unshare DB Service
uses: cloud-gov/cg-cli-tools@main
Expand Down

0 comments on commit 4e3569d

Please sign in to comment.