ny deploy test
Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
parent
cc7ba72ca2
commit
aa7b8b1e97
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build-and-deploy.yml
vendored
7
.github/workflows/build-and-deploy.yml
vendored
|
@ -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"
|
Reference in a new issue