Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Jan 12, 2024
1 parent 28d7af3 commit 3e90bf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: drain-management-staging-space
uses: cloud-gov/cg-cli-tools@main
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8
with:
command: |
./create-space-drain.sh management-staging
Expand All @@ -122,7 +122,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: drain-staging-space
uses: cloud-gov/cg-cli-tools@main
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8
with:
command: |
./create-space-drain.sh management-staging
Expand All @@ -141,7 +141,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: drain-management-space
uses: cloud-gov/cg-cli-tools@main
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8
with:
command: |
./create-space-drain.sh management
Expand All @@ -160,7 +160,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: drain-prod-space
uses: cloud-gov/cg-cli-tools@main
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8
with:
command: |
./create-space-drain.sh management
Expand All @@ -179,7 +179,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: drain-prod-egress-space
uses: cloud-gov/cg-cli-tools@main
uses: cloud-gov/cg-cli-tools@37d58fc10abf00a45926e8886879c81a498f7ea8
with:
command: |
./create-space-drain.sh management
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
drain-apps-in-development:
name: drain apps in development space
environment: development
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs:
- deploy-development-ssb
steps:
Expand Down
12 changes: 1 addition & 11 deletions create-space-drain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ drain_space=${1:-management}
drain_name=${2:-logstack-shipper}
prefix=${3:-logstack}

# # install drain plugin if it isn't installed
# install drain plugin if it isn't installed
if ! cf plugins | grep -q drain; then
echo "cf-drain-cli plugin not found. Installing..."
apt install jq curl -y &&
Expand All @@ -31,16 +31,6 @@ fi
# If the app already exists, exit early/successfully
cf app "${prefix}-space-drain" > /dev/null 2>&1 && echo "Drain already exists." && exit 0

# echo "cf-drain-cli plugin not found. Downloading..."
# apt install jq curl -y
# curl -L -o drain-plugin https://github.com/cloudfoundry/cf-drain-cli/releases/download/v2.0.0/cf-drain-cli-linux --insecure
# echo "Installing cf-drain-cli plugin ..."
# cf install-plugin -f drain-plugin
# rm -f drain-plugin
# mkdir -p /root/.cf/ && touch /root/.cf/config.json &&
# echo "cf-drain-cli plugin installed successfully."


space=$(cf target | grep space: | cut -d : -f 2 | sed s/\ //g)

# Grab the credentials and route from the management space, then switch back
Expand Down

0 comments on commit 3e90bf5

Please sign in to comment.