Skip to content

Commit 2ea163f

Browse files
committed
Integrate building Docker image in release workflow
Refs #280
1 parent 54102da commit 2ea163f

File tree

2 files changed

+22
-29
lines changed

2 files changed

+22
-29
lines changed

.github/workflows/docker.yml

-29
This file was deleted.

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
distribution: 'zulu'
2525
java-version: 11
26+
cache: 'maven'
2627
# Value of the distributionManagement/repository/id field of the pom.xml
2728
server-id: sonatype-nexus-staging
2829
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -48,3 +49,24 @@ jobs:
4849
run: |
4950
./mvnw -B release:rollback -Prelease -Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}}
5051
echo "You may need to manually delete the GitHub tag, if it was created."
52+
docker:
53+
needs: release
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/[email protected]
57+
ref: ${{ github.event.inputs.releaseVersion }}
58+
- name: Set up Docker Buildx
59+
uses: docker/setup-buildx-action@v1
60+
- name: Login to DockerHub
61+
uses: docker/login-action@v1
62+
with:
63+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
64+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
65+
- name: Build & Push Docker image
66+
uses: docker/build-push-action@v2
67+
with:
68+
context: .
69+
push: true
70+
tags: |
71+
openapitools/openapi-diff:${{ github.event.inputs.releaseVersion }}
72+
openapitools/openapi-diff:latest

0 commit comments

Comments
 (0)