Skip to content

Commit

Permalink
Fixing putting back logging mutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Metichecchia authored and Xavier Metichecchia committed Jun 10, 2024
1 parent b34e6f3 commit a357b00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/cloudgov-cleanup-old-service-keys.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Clean up service keys

# on:
# schedule:
# - cron: "30 4 * * *"
#
on:
push:
branches:
- 1407-service-clean-fix
schedule:
- cron: "30 4 * * *"

jobs:
cleanup-service-keys-dev:
Expand Down
4 changes: 2 additions & 2 deletions scripts/pipeline/cloud-gov-cleanup-service-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ echo "Cleaning up service keys..."
{
for key in "${service_keys[@]}"; do
echo "Deleting service key '${key}'..."
cf delete-service-key "${service}" "${key}" -f #>/dev/null 2>&1
cf delete-service-key "${service}" "${key}" -f >/dev/null 2>&1
done
} #>/dev/null 2>&1
} >/dev/null 2>&1
4 changes: 2 additions & 2 deletions scripts/pipeline/cloud-gov-login.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

echo "Logging into Cloud.gov..."
# {
{
cf login \
-a https://api.fr.cloud.gov \
-u "${CF_USER}" \
-p "${CF_PASSWORD}" \
-o "${CF_ORG}" \
-s "${PROJECT}-${BRANCH}" > login.log || login_error=1
# } >/dev/null 2>&1
} >/dev/null 2>&1

[ -n "${login_error}" ] && echo "Error logging into Cloud.gov!" && exit 1

Expand Down

0 comments on commit a357b00

Please sign in to comment.