diff --git a/.github/workflows/dockerhub-github-publish.yml b/.github/workflows/dockerhub-github-publish.yml index 35d1f254..682f0fa5 100644 --- a/.github/workflows/dockerhub-github-publish.yml +++ b/.github/workflows/dockerhub-github-publish.yml @@ -32,3 +32,18 @@ jobs: run: ./mvnw deploy -s $GITHUB_WORKSPACE/settings.xml env: GITHUB_TOKEN: ${{ github.token }} + + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker images + uses: docker/build-push-action@v3.2.0 + with: + context: ./ + file: ./Dockerfile + push: true + tags: kdhrubo/db2rest:v${{github.run_number}}, kdhrubo/db2rest:latest