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 99 build :
1010 name : Test and build
1111 runs-on : ubuntu-latest
12- if : github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/ master'
12+ if : github.ref != 'refs/heads/master'
1313 steps :
1414 - uses : actions/checkout@v4
1515 - name : Set up JDK 21
3030
3131 build-and-push :
3232 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'
3434 runs-on : ubuntu-latest
3535 permissions :
3636 packages : write
6060 deploy-dev :
6161 name : Deploy to dev-gcp
6262 needs : build-and-push
63- if : github.ref == 'refs/heads/dev '
63+ if : github.ref == 'refs/heads/master '
6464 runs-on : ubuntu-latest
65+ environment : dev-gcp
6566 permissions :
6667 contents : read
6768 id-token : write
7980 needs : build-and-push
8081 if : github.ref == 'refs/heads/master'
8182 runs-on : ubuntu-latest
83+ environment : prod-gcp
8284 permissions :
8385 contents : read
8486 id-token : write
8991 PRINT_PAYLOAD : true
9092 CLUSTER : prod-gcp
9193 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