Skip to content

👷 Bytter til docker-build-push #49

👷 Bytter til docker-build-push

👷 Bytter til docker-build-push #49

Workflow file for this run

name: master
on:
push:
branches:
- master
jobs:
build:
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/docker-build-push@v0
name: Build and push image
id: docker-build-push
with:
team: tbd
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
deployDev:
name: Deploy to dev
needs: [build]
runs-on: ubuntu-latest
env:
IMAGE: "${{ needs.build.outputs.image }}"
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
RESOURCE: deploy/dev.yml
deployProd:
name: Deploy to prod
needs: [build, deployDev]
runs-on: ubuntu-latest
env:
IMAGE: "${{ needs.build.outputs.image }}"
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: deploy/prod.yml