Skip to content

Commit 9afc0e8

Browse files
committed
organize images in nested repositories
1 parent 5fbb974 commit 9afc0e8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/docker-build-push.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- hub-deploy
7+
tags:
8+
- 'v*'
79
workflow_dispatch:
810

911
env:
@@ -60,11 +62,13 @@ jobs:
6062
id: meta
6163
uses: docker/metadata-action@v5
6264
with:
63-
images: ${{ env.REGISTRY }}/${{ env.DOCKERHUB_ORGANIZATION }}/interactiveai
65+
images: ${{ env.REGISTRY }}/${{ env.DOCKERHUB_ORGANIZATION }}/interactiveai/${{ matrix.service }}
6466
tags: |
65-
type=raw,value=${{ matrix.service }},enable=true
66-
type=raw,value=${{ matrix.service }}-{{branch}},enable=true
67-
type=raw,value=${{ matrix.service }}-{{sha}},enable=true
67+
type=raw,value=latest,enable={{is_default_branch}}
68+
type=semver,pattern={{major}}.{{minor}}.{{patch}}
69+
type=semver,pattern={{major}}.{{minor}}
70+
type=raw,value={{branch}}
71+
type=sha
6872
6973
- name: Build and push Docker image
7074
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)