File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ set -eu
2
+
3
+ git log -25000 --format='%H' | sort > tmp-log
4
+ git show-ref | grep tags/mysql-8 | sort > tmp-tags
5
+ export CONTAINER_SEMVER=$(join tmp-log tmp-tags | sort -k2 | tail -1 | cut -d- -f2)
6
+ echo "Semantic version = \"${CONTAINER_SEMVER}\""
7
+
8
+ export CONTAINER_SHORT_SHA=$(git log -1 --pretty='%h')
9
+ echo "Short SHA = \"${CONTAINER_SHORT_SHA}\""
10
+
11
+ export CONTAINER_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD | sed -e 's/[\/:]/_/g')
12
+ echo "Safe branch name = \"${CONTAINER_BRANCH_NAME}\""
Original file line number Diff line number Diff line change 33
33
- docker-compose#v3.9.0:
34
34
run : release
35
35
push :
36
- - " release:${REGISTRY}/branch/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest "
36
+ - " release:${REGISTRY}/branch/${IMAGE_NAME}:${CONTAINER_SEMVER}-ps-${CONTAINER_SHORT_SHA}-${CONTAINER_BRANCH_NAME} "
37
37
38
38
- name : " Build runtime mysql-server container for main"
39
39
label : " :docker: Build runtime main container"
47
47
- docker-compose#v3.9.0:
48
48
run : release
49
49
push :
50
- - " release:${REGISTRY}/main/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest "
50
+ - " release:${REGISTRY}/main/${IMAGE_NAME}:${CONTAINER_SEMVER}-ps-${CONTAINER_SHORT_SHA} "
You can’t perform that action at this time.
0 commit comments