Skip to content

Commit

Permalink
declare flannel cni version arg correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskirkpat committed Oct 8, 2021
1 parent 57b53de commit 8bc41ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARG GO_IMAGE=rancher/hardened-build-base:v1.16.7b7
### Build the cni-plugins ###
FROM ${GO_IMAGE} as cni_plugins
ARG TAG
ARG FLANNEL_CNI_TAG
RUN git clone --depth=1 https://github.com/containernetworking/plugins.git $GOPATH/src/github.com/containernetworking/plugins \
&& cd $GOPATH/src/github.com/containernetworking/plugins \
&& git fetch --all --tags --prune \
Expand All @@ -20,7 +21,7 @@ RUN git clone --depth=1 https://github.com/containernetworking/plugins.git $GOPA

RUN git clone --depth=1 https://github.com/flannel-io/cni-plugin.git $GOPATH/src/github.com/flannel-io/cni-plugin \
&& cd $GOPATH/src/github.com/flannel-io/cni-plugin \
&& git fetch --all --tags \
&& git fetch --all --tags --prune \
&& git checkout tags/${FLANNEL_CNI_TAG} -b ${FLANNEL_CNI_TAG} \
&& go mod vendor \
&& make
Expand Down

0 comments on commit 8bc41ee

Please sign in to comment.