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 45b49c7349 Added: Experimenting with container tag generation 
(OFBIZ-12757)
45b49c7349 is described below

commit 45b49c73496f16cfb4e01d1a1b5fec8996d999a0
Author: Daniel Watford <dan...@watfordconsulting.com>
AuthorDate: Wed Mar 1 16:13:59 2023 +0000

    Added: Experimenting with container tag generation (OFBIZ-12757)
---
 .github/workflows/docker-image.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/docker-image.yaml 
b/.github/workflows/docker-image.yaml
index 0a7c59c382..8a8928ee78 100644
--- a/.github/workflows/docker-image.yaml
+++ b/.github/workflows/docker-image.yaml
@@ -22,6 +22,7 @@ name: Docker image build
 on:
   push:
     branches: [ experimental-docker ]
+    tags:
 
 jobs:
   docker_build:
@@ -44,6 +45,8 @@ jobs:
           # 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}}
 
 #    - name: Build Docker image
 #      uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc

Reply via email to