Skip to content

Commit bafc381

Browse files
committed
Only publish to docker when on master
1 parent e89966f commit bafc381

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/bootzooka-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,34 @@ jobs:
4848
run: yarn build
4949
working-directory: ./ui
5050

51+
publish:
52+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
53+
needs: [ verify ]
54+
runs-on: ubuntu-24.04
55+
56+
steps:
57+
- name: Check-out repository
58+
id: repo-checkout
59+
uses: actions/checkout@v4
60+
61+
- name: Set up JDK
62+
uses: actions/setup-java@v4
63+
with:
64+
distribution: 'zulu'
65+
java-version: '21'
66+
cache: 'sbt'
67+
68+
- uses: sbt/setup-sbt@v1
69+
70+
- name: Set up Node.js
71+
uses: actions/setup-node@v4
72+
with:
73+
node-version: 22
74+
75+
- name: Generate OpenAPI Spec
76+
id: generate-openapi-spec
77+
run: sbt "backend/generateOpenAPIDescription"
78+
5179
- name: Login to DockerHub
5280
uses: docker/login-action@v1
5381
with:

0 commit comments

Comments
 (0)