@@ -23,18 +23,13 @@ jobs:
23
23
with :
24
24
distribution : ' zulu'
25
25
java-version : 11
26
+ cache : ' maven'
26
27
# Value of the distributionManagement/repository/id field of the pom.xml
27
28
server-id : sonatype-nexus-staging
28
29
gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
29
30
server-username : OSS_USERNAME
30
31
server-password : OSS_PASSWORD
31
32
gpg-passphrase : GPG_PASSPHRASE
32
- - uses : actions/cache@v2.1.6
33
- with :
34
- path : ~/.m2/repository
35
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
36
- restore-keys : |
37
- ${{ runner.os }}-maven-
38
33
- name : Setup Git
39
34
run : |
40
35
git config --global committer.email "noreply@github.com"
48
43
run : |
49
44
./mvnw -B release:rollback -Prelease -Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}}
50
45
echo "You may need to manually delete the GitHub tag, if it was created."
46
+ docker :
47
+ needs : release
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - uses : actions/checkout@v2.4.0
51
+ ref : ${{ github.event.inputs.releaseVersion }}
52
+ - name : Set up Docker Buildx
53
+ uses : docker/setup-buildx-action@v1
54
+ - name : Login to DockerHub
55
+ uses : docker/login-action@v1
56
+ with :
57
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
58
+ password : ${{ secrets.DOCKER_HUB_PASSWORD }}
59
+ - name : Build & Push Docker image
60
+ uses : docker/build-push-action@v2
61
+ with :
62
+ context : .
63
+ push : true
64
+ tags : |
65
+ openapitools/openapi-diff:${{ github.event.inputs.releaseVersion }}
66
+ openapitools/openapi-diff:latest
0 commit comments