Skip to content

Commit

Permalink
Fix environment var name.
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-rapnicki-bixal committed Apr 17, 2024
1 parent 3ac8f41 commit ac6bc5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/pipeline/s3-backup-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

set -e

backup_bucket="${PROJECT}-backup-${ENVIRONMENT}"
space="${PROJECT}-${ENVIRONMENT}"
backup_bucket="${PROJECT}-backup-${BRANCH}"
space="${PROJECT}-${BRANCH}"

echo "Getting backup bucket credentials..."
{
cf target -s "${space}"

service="${backup_bucket}"
service_key="${service}-pipeline-download-${ENVIRONMENT}-key"
service_key="${service}-pipeline-download-${BRANCH}-key"
cf delete-service-key "${service}" "${service_key}" -f
cf create-service-key "${service}" "${service_key}"
sleep 2
Expand Down
6 changes: 3 additions & 3 deletions scripts/pipeline/s3-backup-post-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

set -e

backup_bucket="${PROJECT}-backup-${ENVIRONMENT}"
space="${PROJECT}-${ENVIRONMENT}"
backup_bucket="${PROJECT}-backup-${BRANCH}"
space="${PROJECT}-${BRANCH}"

if [ -z "${S3_FILE_PATH}" ]; then
echo "Getting backup bucket credentials..."
{
cf target -s "${space}"

service="${backup_bucket}"
service_key="${service}-pipeline-post-restore-${ENVIRONMENT}-key"
service_key="${service}-pipeline-post-restore-${BRANCH}-key"
cf delete-service-key "${service}" "${service_key}" -f
cf create-service-key "${service}" "${service_key}"
sleep 2
Expand Down

0 comments on commit ac6bc5d

Please sign in to comment.