make sure Dockerfile rebuilds when there is a new version available
This commit is contained in:
parent
45ce884264
commit
715d27d314
2 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ RUN \
|
|||
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
|
||||
apt-get install -y \
|
||||
cmake \
|
||||
ctags \
|
||||
gcc \
|
||||
g++ \
|
||||
git \
|
||||
|
|
@ -32,6 +33,8 @@ WORKDIR /opt
|
|||
|
||||
# COPY git-keys /root/.ssh/known_hosts
|
||||
|
||||
ARG srcid=0
|
||||
|
||||
RUN git clone https://git.braxo.se/daniel/autofw.git
|
||||
|
||||
WORKDIR /opt/autofw/src
|
||||
|
|
|
|||
3
build.sh
3
build.sh
|
|
@ -6,9 +6,12 @@ img=autofw-$arch
|
|||
|
||||
# ssh-keyscan git.braxo.se > git-keys
|
||||
|
||||
srcid=`git ls-remote https://git.braxo.se/daniel/autofw.git refs/heads/main | cut -c-40`
|
||||
|
||||
export DOCKER_BUILDKIT=1
|
||||
|
||||
docker build \
|
||||
--build-arg srcid=$srcid \
|
||||
--platform $pf \
|
||||
-t $img \
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue