File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 18
18
env :
19
19
DEFAULT_JAVA_VERSION : 17
20
20
DEFAULT_JAVA_TYPE : jre
21
+ REGISTRY : docker.io
21
22
22
23
jobs :
23
24
create-variables :
36
37
with :
37
38
ref : ${{ github.event.workflow_run.head_branch }}
38
39
- name : Update the registry
40
+ if : ${{ github.event.inputs.registry != '' }}
39
41
run : echo "REGISTRY=${{ github.event.inputs.registry }}" >> $GITHUB_ENV
40
42
- name : Set up JDK 17
41
43
uses : actions/setup-java@v4
@@ -115,9 +117,21 @@ jobs:
115
117
-PdockerTags=$DOCKER_TAGS
116
118
--imageName=$IMAGE:$CLOUD_CONFIG_BUILD_VERSION-$SHORT_SHA-$JAVA
117
119
--publishImage
118
- - name : Update Docker Hub README
119
- if : env.REGISTRY == 'docker.io'
120
-
120
+
121
+ update-docker-hub-description :
122
+ name : Update Docker Hub README
123
+ needs :
124
+ - create-variables
125
+ - build-and-deploy-to-registry
126
+ if : needs.create-variables.outputs.registry == 'docker.io'
127
+ runs-on : ubuntu-latest
128
+ steps :
129
+ - name : Checkout
130
+ uses : actions/checkout@v4
131
+ with :
132
+ ref : ${{ github.event.workflow_run.head_branch }}
133
+ - name : Docker Hub Description
134
+ uses : peter-evans/dockerhub-description@v4
121
135
with :
122
- pass : ${{ secrets.DOCKER_PASS }}
123
- description : true
136
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
137
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments