Skip to content

remove nonroot

remove nonroot #32

Workflow file for this run

on:
push:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
build-and-push:
name: Build and push GAR
runs-on: ubuntu-20.04
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
steps:
- uses: actions/checkout@v4
- name: Push docker image to GAR
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: nada
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
deploy-prod:
name: Deploy prod gcp
runs-on: ubuntu-20.04
needs: [build-and-push]
steps:
- uses: actions/checkout@v4
- name: Deploy to dev-gcp
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: .nais/naisjob.yaml,.nais/alerts.yaml
VAR: image=${{ needs.build-and-push.outputs.image }}