Skip to content

Commit c607cbe

Browse files
committed
Add predictable image tags based on branch name and datetime
1 parent 34abc49 commit c607cbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
# Build and push Docker image with Buildx
6060
# https://github.com/docker/build-push-action
61-
- name: Build and push test image
61+
- name: Build test image
6262
id: build-test
6363
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
6464
with:
@@ -85,10 +85,12 @@ jobs:
8585
# generate Docker tags based on the following events/attributes
8686
tags: |
8787
type=sha
88+
type=raw,value={{branch}}-latest
89+
type=raw,value={{branch}}-{{date 'YYYYMMDDHHmmss'}}
8890
8991
# Build and push Docker image with Buildx
9092
# https://github.com/docker/build-push-action
91-
- name: Build and push Docker image
93+
- name: Build and push production image
9294
id: build-and-push
9395
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
9496
with:

0 commit comments

Comments
 (0)