-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (35 loc) · 1.06 KB
/
deploy-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy til prod
on: [workflow_dispatch]
jobs:
Build:
runs-on: ubuntu-latest
permissions:
id-token: write # nais docker-build-push
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Bygge JAR
run: mvn clean package -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
- uses: nais/docker-build-push@v0
id: docker-push
with:
team: k9saksbehandling
push_image: true
pull: true
dockerfile: Dockerfile
docker_context: .
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
- name: Deploy til prod
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: nais/prod-fss.yml
IMAGE: ${{ steps.docker-push.outputs.image }}