Skip to content

Commit a097451

Browse files
committed
Change image tag format
1 parent aa1ee8b commit a097451

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,7 @@ jobs:
147147
with:
148148
images: ${{ env.container_registry }}/${{ env.docker_image_name }}
149149
tags: |
150-
type=ref,event=branch
151-
type=ref,event=tag
152-
type=ref,event=pr
153-
type=sha,format=long
154-
type=raw,value=latest,enable=${{ env.is_published_build }}
155-
type=raw,value=${{ github.event.created_at }}
150+
type=sha,priority=1000,format=short,prefix={{branch}}_{{date 'YYYY-MM-DD-HH-mm'}}_
156151
157152
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
158153
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.

0 commit comments

Comments
 (0)