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 78b02e64b2 Added: Experimenting with container tag gernation (OFBIZ-12757) 78b02e64b2 is described below commit 78b02e64b20bbea213a5a580119ecf9a8a48e57f Author: Daniel Watford <dan...@watfordconsulting.com> AuthorDate: Wed Mar 1 15:44:54 2023 +0000 Added: Experimenting with container tag gernation (OFBIZ-12757) Building of docker images has been deliberately removed to prevent wasted builds while experimenting with tag generation in GH Actions. --- .github/workflows/docker-image.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index 54e2178011..e702aa527e 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -33,14 +33,21 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 with: - images: apache/ofbiz-framework + images: ghcr.io/apache/ofbiz-framework + 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(.*) + # 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 - - name: Build Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - with: - context: . - push: false - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} +# - name: Build Docker image +# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc +# with: +# context: . +# push: false +# tags: ${{ steps.meta.outputs.tags }} +# labels: ${{ steps.meta.outputs.labels }}