ny deploy test

Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
sindrekjelsrud 2023-06-28 16:28:15 +02:00
parent cc7ba72ca2
commit aa7b8b1e97

View file

@ -6,6 +6,9 @@ on:
- "main" - "main"
env: env:
"IMAGE": "ghcr.io/${{ github.repository }}:${{ github.sha }}" "IMAGE": "ghcr.io/${{ github.repository }}:${{ github.sha }}"
defaults:
run:
working-directory: frontend
jobs: jobs:
"build": "build":
name: "build" name: "build"
@ -29,7 +32,7 @@ jobs:
uses: "docker/build-push-action@v2" uses: "docker/build-push-action@v2"
with: with:
context: . context: .
file: frontend/Dockerfile file: Dockerfile
tags: "${{ env.IMAGE }}" tags: "${{ env.IMAGE }}"
push: "true" push: "true"
"deploy": "deploy":
@ -43,4 +46,4 @@ jobs:
env: env:
"APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}" "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}"
"CLUSTER": "dev-gcp" "CLUSTER": "dev-gcp"
"RESOURCE": "frontend/nais.yml" "RESOURCE": "nais.yml"