Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deployments to PaaS Staging and Prod #1197

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,57 +55,3 @@ jobs:
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- run: bundle install --jobs 4 --retry 3 --deployment
- run: bundle exec rake
deploy_to_staging:
if: github.ref == 'refs/heads/main'
needs: test
environment: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: bundle
- name: install cloud foundry
run: |
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install cf-cli
- name: Deploy to staging
env:
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
CF_USER: ${{ secrets.CF_USER }}
CF_PASS: ${{ secrets.CF_PASS }}
CF_SPACE: ${{ secrets.CF_SPACE }}
CF_API: ${{ secrets.CF_API }}
run: scripts/deploy.sh find-data-beta-staging staging
deploy_to_production:
if: startsWith(github.ref, 'refs/tags/')
needs: test
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: bundle
- name: install cloud foundry
run: |
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install cf-cli
- name: Deploy to production
env:
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
CF_USER: ${{ secrets.CF_USER }}
CF_PASS: ${{ secrets.CF_PASS }}
CF_SPACE: ${{ secrets.CF_SPACE }}
CF_API: ${{ secrets.CF_API }}
run: scripts/deploy.sh find-data-beta production
Loading