docker-builder/openwrt-builder-commit.dockerfile
Martin Kennedy d488fb5703 fix: cleanup a logically incorrect && ... || shell sequence
If one of the other &&s had failed other than the last one, we'd have
descended into the OR here.
2022-05-24 17:11:33 -04:00

18 lines
428 B
Docker

FROM openwrt-builder
ARG remote="origin"
ARG remoteurl="https://git.laboratoryb.org/hurricos/openwrt-mirror"
ARG commit="master"
RUN cd ${openwrt_dir} \
&& ( git remote add ${remote} ${remoteurl} --tags || true )
RUN cd ${openwrt_dir} && git fetch --all && { git checkout ${remote}/${commit} || git checkout "${commit}" ; }
RUN cd ${openwrt_dir} \
&& ./scripts/feeds update -a \
&& ./scripts/feeds install -a