Skip to content

Commit 60eb15f

Browse files
committed
improve edge Dockerfile to accept branch arg
1 parent 67112fd commit 60eb15f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

edge/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ FROM dannyben/alpine-ruby
33
ENV PS1 "\n\n>> bashly \W \$ "
44
RUN apk add --no-cache git
55

6+
ARG branch=master
7+
68
WORKDIR /bashly
7-
RUN git clone --depth 1 https://github.com/DannyBen/bashly.git .
9+
RUN git clone --branch $branch --depth 1 https://github.com/DannyBen/bashly.git .
810
RUN gem build bashly.gemspec
911
RUN gem install bashly*.gem
1012

edge/op.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
build: docker build --no-cache -t dannyben/bashly:edge . && docker images |grep bashly
1+
build: docker build --build-arg=branch=$1 --no-cache -t dannyben/bashly:edge . && docker images |grep bashly
22
push: docker push dannyben/bashly:edge

0 commit comments

Comments
 (0)