diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2021-09-15 16:06:48 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2021-09-19 11:01:47 -0400 |
| commit | 4f57f49ebe5395a4c3a8e20c84c5d881c9f98dfc (patch) | |
| tree | c537531616d1e75ded332d38959c90185bf8ba72 /server/hooks/post_push | |
| parent | f58079e12edd3c4dcc3f8b8dab572207b235aeff (diff) | |
client+server: migrate to GitHub actions
Diffstat (limited to 'server/hooks/post_push')
| -rwxr-xr-x | server/hooks/post_push | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/server/hooks/post_push b/server/hooks/post_push deleted file mode 100755 index 1b1e0ad..0000000 --- a/server/hooks/post_push +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -add_tag() { - echo "Also tagging image as ${DOCKER_REPO}:${1}" - docker tag $IMAGE_NAME $DOCKER_REPO:$1 - docker push $DOCKER_REPO:$1 -} - -CLOSEST_VER=$(git describe --tags --abbrev=0) -CLOSEST_MAJOR_VER=$(echo ${CLOSEST_VER} | cut -d'.' -f1) -CLOSEST_MINOR_VER=$(echo ${CLOSEST_VER} | cut -d'.' -f2) - -add_tag "${CLOSEST_MAJOR_VER}-edge" -add_tag "${CLOSEST_MAJOR_VER}.${CLOSEST_MINOR_VER}-edge" - -if git describe --exact-match --abbrev=0 2> /dev/null; then - add_tag "${CLOSEST_MAJOR_VER}" - add_tag "${CLOSEST_MAJOR_VER}.${CLOSEST_MINOR_VER}" -fi |