From 39e615913b6e22804729fcd8873c38c9f0e1539b Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Fri, 17 May 2024 16:31:43 -0700 Subject: [PATCH] Split maven build and image build and push into two steps --- .github/workflows/pub-docker-hub.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pub-docker-hub.yaml b/.github/workflows/pub-docker-hub.yaml index ce6e49fca..1cf335e11 100644 --- a/.github/workflows/pub-docker-hub.yaml +++ b/.github/workflows/pub-docker-hub.yaml @@ -3,6 +3,7 @@ on: release: types: - published + workflow_dispatch: jobs: publish: @@ -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}} \ No newline at end of file