Skip to content

Commit

Permalink
fix(ci): add alert scanner job to release job (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollz272 authored Apr 30, 2023
1 parent 4f50441 commit 9e9f507
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,30 @@ jobs:

- id: deploy
name: Deploy to GCR
run: gcloud run jobs replace ./services/weather_service.yaml
run: gcloud run jobs replace ./services/weather_service.yaml

deploy-alert-scan-cron:
name: Deploy Alert Scanner Cron Job
runs-on: ubuntu-20.04
needs: [ migrate, gcr-push ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ubuntu packages
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libgdal26
- id: auth
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCLOUD_SERVICE_KEY }}

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '>= 363.0.0'

- id: deploy
name: Deploy to GCR
run: gcloud run jobs replace ./services/alert_service.yaml

0 comments on commit 9e9f507

Please sign in to comment.