Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force canary image be built from master #805

Merged
merged 1 commit into from
Mar 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build/Dockerfile-canary
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM centos:7
MAINTAINER Ansible Service Broker Community

ARG VERSION=master
LABEL "com.redhat.version"=$VERSION

ENV USER_NAME=ansibleservicebroker \
USER_UID=1001 \
BASE_DIR=/opt/ansibleservicebroker
Expand Down Expand Up @@ -35,7 +38,7 @@ ENV GOPATH=/go
ENV BROKER_PATH=${GOPATH}/src/github.com/openshift

RUN mkdir -p /go/src/github.com/openshift/ansible-service-broker
RUN git clone https://github.com/openshift/ansible-service-broker ${BROKER_PATH}/ansible-service-broker
RUN git clone -b $VERSION https://github.com/openshift/ansible-service-broker ${BROKER_PATH}/ansible-service-broker
WORKDIR /go/src/github.com/openshift/ansible-service-broker

RUN go build -i -ldflags="-s -w" ./cmd/broker
Expand Down