Skip to content

Commit

Permalink
Merge pull request #1221 from alphagov/remove-deploy-paas
Browse files Browse the repository at this point in the history
Remove deployments to PaaS Staging and Prod
  • Loading branch information
kentsanggds authored Nov 30, 2023
2 parents 8f2546f + 36bf928 commit cc39747
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,57 +58,3 @@ jobs:
- run: bundle exec rails db:schema:load
- name: Run tests
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@v2
- uses: ruby/setup-ruby@v1
- uses: actions/cache@v1
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 publish-beta-staging-worker staging worker
deploy_to_production:
if: startsWith(github.ref, 'refs/tags/')
needs: test
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
- uses: actions/cache@v1
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 publish-beta-production-worker production worker

0 comments on commit cc39747

Please sign in to comment.