File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,10 @@ jobs:
2121 run : ./gradlew build
2222 - name : Test with Gradle
2323 run : ./gradlew test
24-
2524 publish :
2625 runs-on : ubuntu-latest
2726 needs : build
28- env :
29- dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
30- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.super_secret != '' }}
27+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3128 steps :
3229 - uses : actions/checkout@v2
3330 - name : Set up JDK 17
5552 with :
5653 username : ${{ secrets.DOCKERHUB_USERNAME }}
5754 password : ${{ secrets.DOCKERHUB_TOKEN }}
55+ env :
56+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
5857 if : env.dockerhub_username != null
5958 - name : Push to Docker Hub
6059 run : docker push --all-tags ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}
You can’t perform that action at this time.
0 commit comments