Skip to content

Commit 628f124

Browse files
authored
chore: add set_docker_tags_workflow (#463)
1 parent cdaa0a5 commit 628f124

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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}}

0 commit comments

Comments
 (0)