Skip to content

Commit

Permalink
Hotfix to allow prod deploy
Browse files Browse the repository at this point in the history
Remove Legacy Production Steps
  • Loading branch information
XavierMetichecchia authored Feb 1, 2024
1 parent 8b78f0b commit 9a818bd
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,30 +217,13 @@ jobs:
command: |
sudo wget --user-agent "Mozilla" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - && sudo echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list && sudo apt-get update && sudo apt-get -y install cf8-cli curl
- run:
name: LEGACY Run Envsubst on nginx.conf
command: |
cp nginx.conf.src nginx_legacy.conf.src
envsubst '${S3_BUCKET_URL}' < nginx_legacy.conf.src > nginx.conf && pwd && cat nginx.conf
sed -i 's@instances: 1@instances: 2@g' manifest.yml
- run:
name: LEGACY deploy
command: |
set -e
# Log into cloud.gov
cf api api.fr.cloud.gov
cf login -u $CF_USERNAME -p $CF_PASSWORD -o gsa-opp-analytics -s analytics-dev
cf push -f "./manifest.yml"
cf logout
rm nginx.conf
rm nginx_legacy.conf.src
- run:
name: Replace Data URL in _config.yml file when deploying to prod (First sed can go after cutover)
command: |
sed -i 's@url: https://analytics\.usa\.gov@url: https://analytics-prod.app.cloud.gov@g' _config.yml
sed -i 's@ - name: analytics@ - name: analytics-prod@g' manifest.yml
sed -i 's@- analytics-s3@- analytics-s3-prod@g' manifest.yml
- run:
name: Run Envsubst on nginx.conf
command: |
Expand Down

0 comments on commit 9a818bd

Please sign in to comment.