mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 05:29:43 +02:00
Merge pull request #1377 from cisagov/ab/cf-cli-fix
#1367: Change cg-deploy-action to cg-cli-tools
This commit is contained in:
commit
de63dbfae7
6 changed files with 17 additions and 20 deletions
5
.github/workflows/deploy-sandbox.yaml
vendored
5
.github/workflows/deploy-sandbox.yaml
vendored
|
@ -47,9 +47,8 @@ jobs:
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py collectstatic --no-input
|
run: docker compose run app python manage.py collectstatic --no-input
|
||||||
- name: Deploy to cloud.gov sandbox
|
- name: Deploy to cloud.gov sandbox
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
env:
|
env:
|
||||||
DEPLOY_NOW: thanks
|
|
||||||
ENVIRONMENT: ${{ needs.variables.outputs.environment }}
|
ENVIRONMENT: ${{ needs.variables.outputs.environment }}
|
||||||
CF_USERNAME: CF_${{ needs.variables.outputs.environment }}_USERNAME
|
CF_USERNAME: CF_${{ needs.variables.outputs.environment }}_USERNAME
|
||||||
CF_PASSWORD: CF_${{ needs.variables.outputs.environment }}_PASSWORD
|
CF_PASSWORD: CF_${{ needs.variables.outputs.environment }}_PASSWORD
|
||||||
|
@ -58,7 +57,7 @@ jobs:
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ env.ENVIRONMENT }}
|
cf_space: ${{ env.ENVIRONMENT }}
|
||||||
push_arguments: "-f ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml"
|
cf_manifest: ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml
|
||||||
comment:
|
comment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [variables, deploy]
|
needs: [variables, deploy]
|
||||||
|
|
6
.github/workflows/deploy-stable.yaml
vendored
6
.github/workflows/deploy-stable.yaml
vendored
|
@ -30,12 +30,10 @@ jobs:
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py collectstatic --no-input
|
run: docker compose run app python manage.py collectstatic --no-input
|
||||||
- name: Deploy to cloud.gov sandbox
|
- name: Deploy to cloud.gov sandbox
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
env:
|
|
||||||
DEPLOY_NOW: thanks
|
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets.CF_STABLE_USERNAME }}
|
cf_username: ${{ secrets.CF_STABLE_USERNAME }}
|
||||||
cf_password: ${{ secrets.CF_STABLE_PASSWORD }}
|
cf_password: ${{ secrets.CF_STABLE_PASSWORD }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: stable
|
cf_space: stable
|
||||||
push_arguments: "-f ops/manifests/manifest-stable.yaml"
|
cf_manifest: "ops/manifests/manifest-stable.yaml"
|
||||||
|
|
6
.github/workflows/deploy-staging.yaml
vendored
6
.github/workflows/deploy-staging.yaml
vendored
|
@ -30,12 +30,10 @@ jobs:
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py collectstatic --no-input
|
run: docker compose run app python manage.py collectstatic --no-input
|
||||||
- name: Deploy to cloud.gov sandbox
|
- name: Deploy to cloud.gov sandbox
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
env:
|
|
||||||
DEPLOY_NOW: thanks
|
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets.CF_STAGING_USERNAME }}
|
cf_username: ${{ secrets.CF_STAGING_USERNAME }}
|
||||||
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
|
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: staging
|
cf_space: staging
|
||||||
push_arguments: "-f ops/manifests/manifest-staging.yaml"
|
cf_manifest: "ops/manifests/manifest-staging.yaml"
|
||||||
|
|
4
.github/workflows/migrate.yaml
vendored
4
.github/workflows/migrate.yaml
vendored
|
@ -38,10 +38,10 @@ jobs:
|
||||||
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
|
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
|
||||||
steps:
|
steps:
|
||||||
- name: Run Django migrations for ${{ github.event.inputs.environment }}
|
- name: Run Django migrations for ${{ github.event.inputs.environment }}
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ github.event.inputs.environment }}
|
cf_space: ${{ github.event.inputs.environment }}
|
||||||
full_command: "cf run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py migrate' --name migrate"
|
cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py migrate' --name migrate"
|
||||||
|
|
12
.github/workflows/reset-db.yaml
vendored
12
.github/workflows/reset-db.yaml
vendored
|
@ -38,28 +38,28 @@ jobs:
|
||||||
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
|
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
|
||||||
steps:
|
steps:
|
||||||
- name: Delete existing data for ${{ github.event.inputs.environment }}
|
- name: Delete existing data for ${{ github.event.inputs.environment }}
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ github.event.inputs.environment }}
|
cf_space: ${{ github.event.inputs.environment }}
|
||||||
full_command: "cf run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py flush --no-input' --name flush"
|
cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py flush --no-input' --name flush"
|
||||||
|
|
||||||
- name: Run Django migrations for ${{ github.event.inputs.environment }}
|
- name: Run Django migrations for ${{ github.event.inputs.environment }}
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ github.event.inputs.environment }}
|
cf_space: ${{ github.event.inputs.environment }}
|
||||||
full_command: "cf run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py migrate' --name migrate"
|
cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py migrate' --name migrate"
|
||||||
|
|
||||||
- name: Load fake data for ${{ github.event.inputs.environment }}
|
- name: Load fake data for ${{ github.event.inputs.environment }}
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
with:
|
with:
|
||||||
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ github.event.inputs.environment }}
|
cf_space: ${{ github.event.inputs.environment }}
|
||||||
full_command: "cf run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py load' --name loaddata"
|
cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py load' --name loaddata"
|
||||||
|
|
|
@ -64,7 +64,9 @@
|
||||||
10038 OUTOFSCOPE http://app:8080/withdrawconfirmed
|
10038 OUTOFSCOPE http://app:8080/withdrawconfirmed
|
||||||
10038 OUTOFSCOPE http://app:8080/dns
|
10038 OUTOFSCOPE http://app:8080/dns
|
||||||
10038 OUTOFSCOPE http://app:8080/dnssec
|
10038 OUTOFSCOPE http://app:8080/dnssec
|
||||||
|
10038 OUTOFSCOPE http://app:8080/dns/nameservers
|
||||||
10038 OUTOFSCOPE http://app:8080/dns/dnssec
|
10038 OUTOFSCOPE http://app:8080/dns/dnssec
|
||||||
|
10038 OUTOFSCOPE http://app:8080/dns/dnssec/dsdata
|
||||||
# This URL always returns 404, so include it as well.
|
# This URL always returns 404, so include it as well.
|
||||||
10038 OUTOFSCOPE http://app:8080/todo
|
10038 OUTOFSCOPE http://app:8080/todo
|
||||||
# OIDC isn't configured in the test environment and DEBUG=True so this gives a 500 without CSP headers
|
# OIDC isn't configured in the test environment and DEBUG=True so this gives a 500 without CSP headers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue