From deaeb392242547bdb640c68bdade7c8e9ddf27c2 Mon Sep 17 00:00:00 2001 From: Djenan Musinovic Date: Tue, 8 Nov 2022 20:16:05 +0100 Subject: [PATCH] build: add hooks for pushing image on k3s cluster (#215) --- hooks/post_push | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 hooks/post_push diff --git a/hooks/post_push b/hooks/post_push new file mode 100755 index 00000000..c944ca68 --- /dev/null +++ b/hooks/post_push @@ -0,0 +1,4 @@ +#!/bin/bash +TIMESTAMP=$(date +%Y%m%d%H%M%S) +docker tag $IMAGE_NAME $DOCKER_REPO:$SOURCE_BRANCH-$SOURCE_COMMIT-$TIMESTAMP +docker push $DOCKER_REPO:$SOURCE_BRANCH-$SOURCE_COMMIT-$TIMESTAMP