|
|
|
@ -24,7 +24,6 @@ jobs: |
|
|
|
This is a multi-line test comment |
|
|
|
This is a multi-line test comment |
|
|
|
- With GitHub **Markdown** :sparkles: |
|
|
|
- With GitHub **Markdown** :sparkles: |
|
|
|
- Created by [create-or-update-comment][1] |
|
|
|
- Created by [create-or-update-comment][1] |
|
|
|
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-or-update-comment |
|
|
|
[1]: https://github.com/peter-evans/create-or-update-comment |
|
|
|
reactions: '+1' |
|
|
|
reactions: '+1' |
|
|
|
test: |
|
|
|
test: |
|
|
|
@ -187,3 +186,55 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
bundle exec bundler-audit |
|
|
|
bundle exec bundler-audit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deploy: |
|
|
|
|
|
|
|
name: Deploy |
|
|
|
|
|
|
|
concurrency: staging |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
environment: staging |
|
|
|
|
|
|
|
if: github.ref == 'refs/heads/main' |
|
|
|
|
|
|
|
needs: [lint, test, feature_test, audit] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- name: Checkout code |
|
|
|
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Cloud Foundry CLI |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - |
|
|
|
|
|
|
|
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 install cf8-cli |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Deploy |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CF_USERNAME: ${{ secrets.CF_USERNAME }} |
|
|
|
|
|
|
|
CF_PASSWORD: ${{ secrets.CF_PASSWORD }} |
|
|
|
|
|
|
|
CF_API_ENDPOINT: ${{ secrets.CF_API_ENDPOINT }} |
|
|
|
|
|
|
|
CF_SPACE: ${{ secrets.CF_SPACE }} |
|
|
|
|
|
|
|
CF_ORG: ${{ secrets.CF_ORG }} |
|
|
|
|
|
|
|
API_USER: ${{ secrets.API_USER }} |
|
|
|
|
|
|
|
API_KEY: ${{ secrets.API_KEY }} |
|
|
|
|
|
|
|
APP_NAME: dluhc-core-staging |
|
|
|
|
|
|
|
GOVUK_NOTIFY_API_KEY: ${{ secrets.GOVUK_NOTIFY_API_KEY }} |
|
|
|
|
|
|
|
APP_HOST: ${{ secrets.APP_HOST }} |
|
|
|
|
|
|
|
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} |
|
|
|
|
|
|
|
IMPORT_PAAS_INSTANCE: ${{ secrets.IMPORT_PAAS_INSTANCE }} |
|
|
|
|
|
|
|
EXPORT_PAAS_INSTANCE: ${{ secrets.EXPORT_PAAS_INSTANCE }} |
|
|
|
|
|
|
|
S3_CONFIG: ${{ secrets.S3_CONFIG }} |
|
|
|
|
|
|
|
CSV_DOWNLOAD_PAAS_INSTANCE: ${{ secrets.CSV_DOWNLOAD_PAAS_INSTANCE }} |
|
|
|
|
|
|
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
cf api $CF_API_ENDPOINT |
|
|
|
|
|
|
|
cf auth |
|
|
|
|
|
|
|
cf target -o $CF_ORG -s $CF_SPACE |
|
|
|
|
|
|
|
cf set-env $APP_NAME API_USER $API_USER |
|
|
|
|
|
|
|
cf set-env $APP_NAME API_KEY $API_KEY |
|
|
|
|
|
|
|
cf set-env $APP_NAME GOVUK_NOTIFY_API_KEY $GOVUK_NOTIFY_API_KEY |
|
|
|
|
|
|
|
cf set-env $APP_NAME APP_HOST $APP_HOST |
|
|
|
|
|
|
|
cf set-env $APP_NAME RAILS_MASTER_KEY $RAILS_MASTER_KEY |
|
|
|
|
|
|
|
cf set-env $APP_NAME IMPORT_PAAS_INSTANCE $IMPORT_PAAS_INSTANCE |
|
|
|
|
|
|
|
cf set-env $APP_NAME EXPORT_PAAS_INSTANCE $EXPORT_PAAS_INSTANCE |
|
|
|
|
|
|
|
cf set-env $APP_NAME S3_CONFIG $S3_CONFIG |
|
|
|
|
|
|
|
cf set-env $APP_NAME CSV_DOWNLOAD_PAAS_INSTANCE $CSV_DOWNLOAD_PAAS_INSTANCE |
|
|
|
|
|
|
|
cf set-env $APP_NAME SENTRY_DSN $SENTRY_DSN |
|
|
|
|
|
|
|
cf push $APP_NAME --strategy rolling |
|
|
|
|