Skip to content

Commit 7eb3fe4

Browse files
feat: add timestamp tag in action (#1712)
Co-authored-by: Quanyi Ma <eli@patch.sh>
1 parent 7ee4034 commit 7eb3fe4

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/mono-engine-deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,16 @@ jobs:
5252
REGISTRY_ALIAS: m8q5m4u3
5353
REPOSITORY: mega
5454
IMAGE_TAG: mono-0.1.0-pre-release
55-
run: |
56-
docker buildx build -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG -f ./docker/mono-engine-dockerfile .
57-
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
55+
run: |
56+
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
57+
58+
IMAGE_BASE="$REGISTRY/$REGISTRY_ALIAS/$REPOSITORY"
59+
60+
docker buildx build \
61+
-t $IMAGE_BASE:$IMAGE_TAG \
62+
-t $IMAGE_BASE:$IMAGE_TAG-$TIMESTAMP \
63+
-f ./docker/mono-engine-dockerfile \
64+
--push .
5865
5966
- name: Force ECS redeploy
6067
run: |

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ envsubst = "0.2.1"
130130
diffs = "0.5.1"
131131
directories = "6.0.0"
132132
dotenv = "0.15"
133-
redis = "1.0.0-rc.4"
134-
redis-test = "0.13.0"
133+
redis = "1.0.0"
134+
redis-test = "1.0.0"
135135
bincode = "2.0.1"
136136
rustls = "0.23"
137137

0 commit comments

Comments
 (0)