Skip to content

Commit 6122151

Browse files
committed
Add imagebuilder do origin-release Dockerfiles
1 parent 4e48fca commit 6122151

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

hack/build-images.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function image-build() {
6565
local dir=$2
6666
local dest="${tag}"
6767
if [[ ! "${tag}" == *":"* ]]; then
68-
dest="${tag}:latest"
68+
dest="${tag}:${OS_RELEASE_COMMIT}"
6969
fi
7070

7171
local STARTTIME
@@ -78,10 +78,6 @@ function image-build() {
7878
os::build::image "${dir}" "${dest}"
7979
fi
8080

81-
# tag to release commit unless we specified a hardcoded tag
82-
if [[ ! "${tag}" == *":"* ]]; then
83-
docker tag "${dest}" "${tag}:${OS_RELEASE_COMMIT}"
84-
fi
8581
# ensure the temporary contents are cleaned up
8682
git clean -fdx "${dir}"
8783

images/release/golang-1.4/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN mkdir $TMPDIR && \
2323
curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-4/protoc-3.0.0-beta-4-linux-x86_64.zip | bsdtar -C /usr/local -xf - && \
2424
chmod uga+x /usr/local/bin/protoc && \
2525
curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
26+
go get github.com/openshift/imagebuilder/cmd/imagebuilder && \
2627
touch /os-build-image && \
2728
git config --global user.name origin-release-container && \
2829
git config --global user.email [email protected]

images/release/golang-1.6/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN mkdir $TMPDIR && \
2424
chmod uga+x /usr/local/bin/protoc && \
2525
curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
2626
go get golang.org/x/tools/cmd/cover golang.org/x/tools/cmd/goimports github.com/tools/godep github.com/golang/lint/golint && \
27+
go get github.com/openshift/imagebuilder/cmd/imagebuilder && \
2728
touch /os-build-image && \
2829
git config --global user.name origin-release-container && \
2930
git config --global user.email [email protected]

images/release/golang-1.7/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN mkdir $TMPDIR && \
2424
chmod uga+x /usr/local/bin/protoc && \
2525
curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
2626
go get golang.org/x/tools/cmd/cover golang.org/x/tools/cmd/goimports github.com/tools/godep github.com/golang/lint/golint && \
27+
go get github.com/openshift/imagebuilder/cmd/imagebuilder && \
2728
touch /os-build-image && \
2829
git config --global user.name origin-release-container && \
2930
git config --global user.email [email protected]

images/release/golang-1.8/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN mkdir $TMPDIR && \
2424
chmod uga+x /usr/local/bin/protoc && \
2525
curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
2626
go get golang.org/x/tools/cmd/cover golang.org/x/tools/cmd/goimports github.com/tools/godep github.com/golang/lint/golint && \
27+
go get github.com/openshift/imagebuilder/cmd/imagebuilder && \
2728
touch /os-build-image && \
2829
git config --global user.name origin-release-container && \
2930
git config --global user.email [email protected]

0 commit comments

Comments
 (0)