File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - prod-image-august
6- paths :
7- - " klass-forvaltning/**"
8- - " .nais/**/klass-forvaltning-dev.yaml"
9- - " .github/workflows/klass-forvaltning-dev-build-and-deploy.yaml"
10- workflow_dispatch :
116jobs :
127 docker-build :
138 name : Docker build
@@ -31,26 +26,12 @@ jobs:
3126 distribution : ' temurin'
3227 java-version : ' 8'
3328 cache : ' maven'
34- - name : Check what changed
35- id : changed-files
36- uses : " nais/what-changed@main"
37- with :
38- files : .nais/**/klass-forvaltning-dev.yaml
39- main-branch-name : ' nais-migration' # TODO: Remove when we change branch back to main
40- - name : Check for test config changes
41- id : test-config-changed
42- uses : " nais/what-changed@main"
43- with :
44- files : .nais/test/klass-forvaltning-dev.yaml
45- main-branch-name : ' nais-migration' # TODO: Remove when we change branch back to main
4629 - name : Build with Maven
47- if : steps.changed-files.outputs.changed != 'only-inputs' || github.event.inputs.cluster == 'test'
4830 working-directory : klass-forvaltning
4931 run : mvn --batch-mode --update-snapshots install -DskipTests
5032 env :
5133 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5234 - name : Build and push
53- if : steps.changed-files.outputs.changed != 'only-inputs' || github.event.inputs.cluster == 'test'
5435 uses : nais/docker-build-push@v0
5536 id : docker-build-push
5637 with :
6748 id-token : " write"
6849 packages : " read"
6950 runs-on : ubuntu-latest
70- if : github.event_name != 'release' || github.event.inputs.cluster == 'test' || needs.build.outputs.test-config-changed == 'true'
7151 steps :
7252 - name : Checkout
7353 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments