Commit 51378702 authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-fix-docker-regexp' into 'master'

Tighten Docker package regexp

See merge request gitlab-org/gitlab-build-images!301
parents 15c03e58 bbe5618b
......@@ -19,7 +19,7 @@ curl -fsSL | apt-key add -
echo "deb [arch=amd64] stretch stable" >> /etc/apt/sources.list.d/docker.list
apt-get update
PACKAGE_VERSION=$(apt-cache policy docker-ce | awk -v dv=${DOCKER_VERSION} '$1 ~ dv {print $1}')
PACKAGE_VERSION=$(apt-cache policy docker-ce | awk -v dv=${DOCKER_VERSION}~ '$1 ~ dv {print $1}')
apt-get install -y docker-ce=${PACKAGE_VERSION} docker-ce-cli=${PACKAGE_VERSION}
apt-get -yq autoremove
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment