Skip to content

Merge pull request #193 from navikt/feature/nais-docker-push #1061

Merge pull request #193 from navikt/feature/nais-docker-push

Merge pull request #193 from navikt/feature/nais-docker-push #1061

Workflow file for this run

name: Build, push, and deploy
on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
- '**/**.md'
jobs:
build-and-test:
name: Test frontend
uses: ./.github/workflows/test.yml
build-and-push:
name: Build and push Docker container for prod
uses: ./.github/workflows/build-push.yml
with:
environment: prod
secrets: inherit
deploy-prod:
name: Deploy to prod
needs: [build-and-test, build-and-push]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
DRY_RUN: false
PRINT_PAYLOAD: true
CLUSTER: prod-gcp
RESOURCE: .nais/nais.yml
VAR: app_version=${{ github.sha }},image=${{ needs.build-and-push.outputs.image }}