Skip to content

Commit

Permalink
debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Jan 10, 2024
1 parent 8928ae7 commit f238970
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,30 @@ jobs:
sleep 150 # Logstash is very slow to start up
[ "401" = "$(curl -w '%{http_code}' --output /dev/null --silent https://logstash-development-datagov.app.cloud.gov)" ]
drain-apps-in-development-ssb:
name: drain everything in development-ssb space
environment: development-ssb
runs-on: ubuntu-latest
needs:
- deploy-development-ssb
steps:
- name: checkout
uses: actions/checkout@v2
- name: drain-development-ssb-space
uses: cloud-gov/cg-cli-tools@main
with:
command: |
apt install -y jq &&
curl -L -o drain-plugin https://github.com/cloudfoundry/cf-drain-cli/releases/download/v2.0.0/cf-drain-cli-linux &&
cf install-plugin -f -r drain-plugin &&
rm -f drain-plugin &&
mkdir -p /root/.cf/ && touch /root/.cf/config.json &&
./create-space-drain.sh development-ssb
cf_org: gsa-datagov
cf_space: development-ssb
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}

drain-apps-in-development:
name: drain everything in development space
environment: development-ssb
Expand All @@ -66,7 +90,7 @@ jobs:
apt install -y jq &&
echo "01" &&
curl -L -o drain-plugin https://github.com/cloudfoundry/cf-drain-cli/releases/download/v2.0.0/cf-drain-cli-linux &&
echo "02" &&
echo "02" &&
cf install-plugin -f -r drain-plugin &&
echo "03" &&
rm -f drain-plugin &&
Expand Down

0 comments on commit f238970

Please sign in to comment.