Skip to content

Commit

Permalink
Update github action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
akuny committed Jan 30, 2024
1 parent bffd251 commit 9a8da88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@ jobs:
- name: build
run: npm run build:all

# - name: deploy api
# uses: 18f/cg-deploy-action@main
# with:
# cf_username: ${{ secrets.CF_USERNAME }}
# cf_password: ${{ secrets.CF_PASSWORD }}
# cf_org: gsatts-sitescan
# cf_space: prod
# push_arguments: '--vars-file vars.yml site-scanner-api'

# - name: deploy consumer
# uses: 18f/cg-deploy-action@main
# with:
# cf_username: ${{ secrets.CF_USERNAME }}
# cf_password: ${{ secrets.CF_PASSWORD }}
# cf_org: gsatts-sitescan
# cf_space: prod
# push_arguments: '--vars-file vars.yml site-scanner-consumer'

- name: deploy api and consumer
uses: cloud-gov/cg-cli-tools@main
with:
Expand Down
24 changes: 2 additions & 22 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,12 @@ jobs:
- name: build
run: npm run build:all

- name: deploy api to dev
uses: 18f/cg-deploy-action@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsatts-sitescan
cf_space: dev
push_arguments: '--vars-file vars-dev.yml site-scanner-api'

- name: deploy consumer to dev
uses: 18f/cg-deploy-action@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsatts-sitescan
cf_space: dev
push_arguments: '--vars-file vars-dev.yml site-scanner-consumer'

- name: scale consumer
- name: deploy api and consumer to dev
uses: cloud-gov/cg-cli-tools@main
with:
cf_api: https://api.fr.cloud.gov
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsatts-sitescan
cf_space: dev
cf_command: 'scale site-scanner-consumer -i 1 -k 4G -m 512M -f'
# scale to two instances with 4G scratch disk and 2G
# memory each and force deploy
cf_command: push -f manifest.yml --vars-file vars-prod.yml

0 comments on commit 9a8da88

Please sign in to comment.