File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ git log -25000 --format='%H' | sort > tmp-log
9
9
git show-ref | grep tags/mysql-8 | sort > tmp-tags
10
10
export CONTAINER_SEMVER=$( join tmp-log tmp-tags | sort -t. -n -k3 | tail -1 | cut -d- -f2)
11
11
[ -n " $CONTAINER_SEMVER " ]
12
+ export MYSQL_VERSION=" ${CONTAINER_SEMVER} "
12
13
export CONTAINER_SEMVER=" $CONTAINER_SEMVER .$TODAY "
13
14
echo " Semantic version = \" ${CONTAINER_SEMVER} \" "
14
15
Original file line number Diff line number Diff line change 2
2
3
3
# Since we can't strip-components with ADD, we'll need to manually extract it
4
4
FROM debian:bullseye-slim as mysql-dist
5
- ARG MYSQL_VERSION=mysql-8.0.28-linux-x86_64
5
+ ARG MYSQL_VERSION
6
6
7
7
ENV DEBIAN_FRONTEND noninteractive
8
8
9
9
RUN apt-get update && \
10
10
apt-get install -y \
11
11
binutils
12
12
13
- COPY ${MYSQL_VERSION}.tar.gz /dist/
13
+ COPY mysql- ${MYSQL_VERSION}-linux-x86_64 .tar.gz /dist/
14
14
15
15
RUN mkdir /dist/usr && \
16
- tar -xzvf /dist/${MYSQL_VERSION}.tar.gz -C /dist/usr --strip-components=1 && \
16
+ tar -xzvf /dist/mysql- ${MYSQL_VERSION}-linux-x86_64 .tar.gz -C /dist/usr --strip-components=1 && \
17
17
rm -rf /dist/usr/mysql-test && \
18
18
strip /dist/usr/bin/mysql* || true
19
19
Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ services:
12
12
build :
13
13
context : ./dist
14
14
dockerfile : ../Dockerfile.release
15
+ args :
16
+ - MYSQL_VERSION=${MYSQL_VERSION:?}
15
17
environment :
16
18
- BUILDKITE_BRANCH=${BUILDKITE_BRANCH}
You can’t perform that action at this time.
0 commit comments