File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
name : Test and build
11
11
runs-on : ubuntu-latest
12
- if : github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/ master'
12
+ if : github.ref != 'refs/heads/master'
13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
- name : Set up JDK 21
30
30
31
31
build-and-push :
32
32
name : Build and push Docker container
33
- if : github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ master'
33
+ if : github.ref == 'refs/heads/master'
34
34
runs-on : ubuntu-latest
35
35
permissions :
36
36
packages : write
60
60
deploy-dev :
61
61
name : Deploy to dev-gcp
62
62
needs : build-and-push
63
- if : github.ref == 'refs/heads/dev '
63
+ if : github.ref == 'refs/heads/master '
64
64
runs-on : ubuntu-latest
65
+ environment : dev-gcp
65
66
permissions :
66
67
contents : read
67
68
id-token : write
79
80
needs : build-and-push
80
81
if : github.ref == 'refs/heads/master'
81
82
runs-on : ubuntu-latest
83
+ environment : prod-gcp
82
84
permissions :
83
85
contents : read
84
86
id-token : write
89
91
PRINT_PAYLOAD : true
90
92
CLUSTER : prod-gcp
91
93
RESOURCE : .nais/prod.yml
92
- VAR : image=${{ needs.build-and-push.outputs.image }}
94
+ VAR : image=${{ needs.build-and-push.outputs.image }}
You can’t perform that action at this time.
0 commit comments