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 27861f03fa Added: Experimenting with pushing container images to ghcr.io (OFBIZ-12757) 27861f03fa is described below commit 27861f03fa894471cf2a03be6c758a3f67ba4001 Author: Daniel Watford <dan...@watfordconsulting.com> AuthorDate: Wed Mar 1 16:35:36 2023 +0000 Added: Experimenting with pushing container images to ghcr.io (OFBIZ-12757) --- .github/workflows/docker-image.yaml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index 2708e710a6..9cd1e291dc 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -13,10 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - -# This workflow will check style in OFBiz with its plugins -# For more information see: https://github.com/actions/setup-java - name: Docker image build on: @@ -42,18 +38,17 @@ jobs: # When this build is triggered by pusing a git tag, use the string following 'release' as the container tag # value. 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 + # When this build is triggered by pushing to a branch, use the branch name with the suffix + # '-branch-snapshot' as the container tag value. + type=ref,event=branch,suffix=-branch-snapshot # 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}} + type=ref,event=branch,suffix=-branch-{{sha}} -# - 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: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}