Skip to content

Commit b4a1d3a

Browse files
authored
feat(ci): support build dev image (#2448)
Signed-off-by: ashing <[email protected]>
1 parent 27eb3e9 commit b4a1d3a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/push-docker.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
push:
2121
tags:
2222
- '*'
23+
branches:
24+
- master
2325

2426
jobs:
2527
docker:
@@ -47,10 +49,20 @@ jobs:
4749
username: ${{ secrets.DOCKERHUB_USER }}
4850
password: ${{ secrets.DOCKERHUB_TOKEN }}
4951
-
50-
name: Build and push multi-arch image
52+
name: Build and push multi-arch image (Tag)
53+
if: github.ref_type == 'tag'
5154
env:
5255
TAG: ${{ github.ref_name }}
5356
IMAGE_TAG: ${{ github.ref_name }}
5457
run: |
5558
echo "building multi-arch images with tag: $TAG"
5659
make build-push-multi-arch-image
60+
-
61+
name: Build and push multi-arch image (Dev)
62+
if: github.ref_type == 'branch' && github.ref_name == 'master'
63+
env:
64+
TAG: dev
65+
IMAGE_TAG: dev
66+
run: |
67+
echo "building multi-arch images with tag: $TAG"
68+
make build-push-multi-arch-image

0 commit comments

Comments
 (0)