File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : set_docker_tags
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : ' Enter version number to set the tags to.'
7+ type : string
8+ required : true
9+
10+ jobs :
11+ set_tags :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Set up Docker Buildx
15+ uses : docker/setup-buildx-action@v3
16+ with :
17+ driver-opts : network=host
18+
19+ - name : Login to Docker Hub
20+ uses : docker/login-action@v3
21+ with :
22+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
24+
25+ - name : Check if source image exists
26+ run : |
27+ docker manifest inspect denoland/deno:${{ github.event.inputs.version }} > /dev/null
28+
29+ - name : Set tags to version
30+ run : |
31+ docker buildx imagetools create -t denoland/deno:latest denoland/deno:${{github.event.inputs.version}}
32+ docker buildx imagetools create -t denoland/deno:debian denoland/deno:${{github.event.inputs.version}}
33+ docker buildx imagetools create -t denoland/deno:alpine denoland/deno:alpine-${{github.event.inputs.version}}
34+ docker buildx imagetools create -t denoland/deno:bin denoland/deno:bin-${{github.event.inputs.version}}
35+ docker buildx imagetools create -t denoland/deno:distroless denoland/deno:distroless-${{github.event.inputs.version}}
36+ docker buildx imagetools create -t denoland/deno:ubuntu denoland/deno:ubuntu-${{github.event.inputs.version}}
You can’t perform that action at this time.
0 commit comments