Skip to content

Bump pino-pretty from 11.3.0 to 12.0.0 #828

Bump pino-pretty from 11.3.0 to 12.0.0

Bump pino-pretty from 11.3.0 to 12.0.0 #828

name: "Build and deploy"
on:
push:
workflow_dispatch:
jobs:
build:
name: build and push
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: docker-build-push
if: ${{ github.actor != 'dependabot[bot]' }}
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: team-esyfo
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
deploy-dev:
name: Deploy til dev
permissions:
id-token: "write"
if: ${{ github.actor != 'dependabot[bot]' }}
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
IMAGE: ${{ needs.build.outputs.image }}
RESOURCE: nais/dev-gcp/nais.yaml
deploy-prod:
if: github.ref == 'refs/heads/main'
name: Deploy til prod
permissions:
id-token: "write"
needs: [build, deploy-dev]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: nais/prod-gcp/nais.yaml
IMAGE: ${{ needs.build.outputs.image }}
DRY_RUN: false