bump: google-sdk 482 #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy db-backup | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
jobs: | |
build_and_push: | |
name: Build and sign image to GAR | |
outputs: | |
image: ${{ steps.build-push-sign.outputs.image }} | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/docker-build-push@v0 | |
id: build-push-sign | |
with: | |
team: nais | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
# deploy_to_dev: | |
# name: Deploy to nais dev-gcp | |
# needs: build_and_push | |
# permissions: | |
# contents: read | |
# id-token: write | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# | |
# - uses: nais/deploy/actions/deploy@v2 | |
# env: | |
# CLUSTER: dev-gcp | |
# RESOURCE: nais/naisjob.yaml | |
# VAR: image=${{ needs.build_and_push.outputs.image }} | |
# VARS: nais/dev.json | |
deploy_to_prod: | |
name: Deploy to nais prod-gcp | |
needs: build_and_push | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: prod-gcp | |
RESOURCE: nais/naisjob.yaml,nais/alert.yaml | |
VAR: image=${{ needs.build_and_push.outputs.image }} | |
VARS: nais/prod.json |