@@ -2,9 +2,15 @@ name: release-docker-next
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : ' The tag of the published docker image. Format: v[Major].[Minor].[Patch] (do not forget the v).'
8+ required : true
9+ type : string
10+
511
612concurrency :
7- group : ${{ github.workflow }}-${{ github.event.pull_request.number || github. ref }}
13+ group : ${{ github.workflow }}-${{ github.ref }}
814 cancel-in-progress : true
915
1016jobs :
2127 uses : docker/setup-buildx-action@v3
2228
2329 - name : Login to DockerHub
24- if : github.event_name != 'pull_request'
2530 uses : docker/login-action@v3
2631 with :
2732 username : ${{ secrets.DOCKERHUB_USERNAME }}
@@ -30,27 +35,17 @@ jobs:
3035 - name : Check out the repo
3136 uses : actions/checkout@v4
3237
33- - name : Extract metadata (tags, labels) for Docker Hub
34- id : meta_dockerhub
35- uses : docker/metadata-action@v5
36- with :
37- images : " openml/frontend-next"
38- tags : |
39- type=semver,pattern={{raw}}
40-
4138 - name : Build and push
4239 id : docker_build
4340 uses : docker/build-push-action@v6
4441 with :
4542 context : app-next
4643 file : app-next/Dockerfile
47- tags : ${{ steps.meta_dockerhub.outputs.tags }}
48- labels : ${{ steps.meta_dockerhub.outputs.labels }}
44+ tags : ${{ inputs.tags }}
4945 platforms : linux/amd64,linux/arm64
50- push : ${{ github.event_name == 'push' }}
46+ push : true
5147
5248 - name : Update repo description
53- if : ${{ startsWith(github.ref, 'refs/tags/v') }}
5449 uses : peter-evans/dockerhub-description@v4
5550 with :
5651 username : ${{ secrets.DOCKERHUB_USERNAME }}
0 commit comments