This is an automated email from the ASF dual-hosted git repository.
danwatford pushed a commit to branch experimental-docker
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/experimental-docker by this
push:
new f14db8609c Added: Experimenting with container tag generation
(OFBIZ-12757)
f14db8609c is described below
commit f14db8609ce2d3a6dc2420cfd5b0d16d5bd97604
Author: Daniel Watford <[email protected]>
AuthorDate: Wed Mar 1 16:29:47 2023 +0000
Added: Experimenting with container tag generation (OFBIZ-12757)
---
.github/workflows/docker-image.yaml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/docker-image.yaml
b/.github/workflows/docker-image.yaml
index 4f3c70039a..2708e710a6 100644
--- a/.github/workflows/docker-image.yaml
+++ b/.github/workflows/docker-image.yaml
@@ -41,13 +41,14 @@ jobs:
tags: |
# When this build is triggered by pusing a git tag, use the string
following 'release' as the container tag
# value.
- type=match,pattern=release(.*)
- type=match,pattern=exp(.*)
+ type=match,pattern=release(.*),group=1
+ type=match,pattern=exp(.*),group=1
# When this build is triggered by pushing to a branch, use the
branch name with the suffix '-snapshot' as the
# container tag value.
type=ref,event=branch,suffix=-snapshot
- # For all build triggers, use the branch name with the triggering
commit's short SHA as a container tag value.
- type=raw,value={{branch}}-{{sha}}
+ # When this build is triggered by pushing to a branch, use the
branch name with the commit's short SHA
+ # as the container tag value.
+ type=ref,event=branch,suffix=-{{sha}}
# - name: Build Docker image
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc