Skip to content

Commit e9eaedb

Browse files
dkorunicoktalz
authored andcommitted
MINOR: docker: Additionally tag Docker images with branch
1 parent 72d97b4 commit e9eaedb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/docker_auto_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
org.opencontainers.image.version=${{ env.BUILD_VER }}
7070
tags: |
7171
${{ env.DOCKER_IMAGE }}:latest
72+
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_BRANCH }}
7273
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_VER }}
7374
cache-from: type=local,src=/tmp/.buildx-cache
7475
cache-to: type=local,dest=/tmp/.buildx-cache-new
@@ -92,6 +93,7 @@ jobs:
9293
org.opencontainers.image.source=https://github.com/${{ github.repository }}
9394
org.opencontainers.image.version=${{ env.BUILD_VER }}
9495
tags: |
96+
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_BRANCH }}
9597
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_VER }}
9698
cache-from: type=local,src=/tmp/.buildx-cache
9799
cache-to: type=local,dest=/tmp/.buildx-cache-new

.github/workflows/docker_manual_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
org.opencontainers.image.version=${{ env.BUILD_VER }}
7272
tags: |
7373
${{ env.DOCKER_IMAGE }}:latest
74+
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_BRANCH }}
7475
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_VER }}
7576
cache-from: type=local,src=/tmp/.buildx-cache
7677
cache-to: type=local,dest=/tmp/.buildx-cache-new
@@ -94,6 +95,7 @@ jobs:
9495
org.opencontainers.image.source=https://github.com/${{ github.repository }}
9596
org.opencontainers.image.version=${{ env.BUILD_VER }}
9697
tags: |
98+
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_BRANCH }}
9799
${{ env.DOCKER_IMAGE }}:${{ env.BUILD_VER }}
98100
cache-from: type=local,src=/tmp/.buildx-cache
99101
cache-to: type=local,dest=/tmp/.buildx-cache-new

0 commit comments

Comments
 (0)