From 9a8da887be476a8c9f46bdc54eaedbec9c11f1a6 Mon Sep 17 00:00:00 2001 From: Andy Kuny Date: Tue, 30 Jan 2024 17:44:12 -0500 Subject: [PATCH] Update github action workflows --- .github/workflows/deploy.yml | 18 ------------------ .github/workflows/dev.yml | 24 ++---------------------- 2 files changed, 2 insertions(+), 40 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac73a0d6..ab58ce50 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d0af8198..a8b2b118 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -28,25 +28,7 @@ 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 @@ -54,6 +36,4 @@ jobs: 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