Skip to content

Commit

Permalink
Split maven build and image build and push into two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed May 17, 2024
1 parent 08de6ec commit 39e6159
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pub-docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
release:
types:
- published
workflow_dispatch:

jobs:
publish:
Expand All @@ -22,8 +23,11 @@ jobs:
server-id: docker.io
server-username: DOCKER_USERNAME
server-password: DOCKER_PASSWORD
- name: Publish package
run: mvn --batch-mode clean deploy
- name: Build package
run: mvn --batch-mode clean package
- name: Build and push image
run: mvn --batch-mode -pl webprotege-gwt-ui-server dockerfile:build dockerfile:push

env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_TOKEN: ${{secrets.DOCKER_PASSWORD}}

0 comments on commit 39e6159

Please sign in to comment.