Skip to content

ci: tilbake til v0 #166

ci: tilbake til v0

ci: tilbake til v0 #166

Workflow file for this run

name: Build, push, and deploy
on:
push:
branches:
- main
jobs:
build-deploy:
name: Build and push Docker container
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Push docker image to GAR
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: the-g-team
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} # Provided as Organization Secret
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} # Provided as Organization Variable
dockerfile: Dockerfile
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: nais/nais.yaml,nais/alert.yaml
VAR: image=${{ steps.docker-build-push.outputs.image }}