make sure Dockerfile rebuilds when there is a new version available

This commit is contained in:
Daniel Brahneborg 2025-12-07 11:48:25 +01:00
parent 45ce884264
commit 715d27d314
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,7 @@ RUN \
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \ DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
apt-get install -y \ apt-get install -y \
cmake \ cmake \
ctags \
gcc \ gcc \
g++ \ g++ \
git \ git \
@ -32,6 +33,8 @@ WORKDIR /opt
# COPY git-keys /root/.ssh/known_hosts # COPY git-keys /root/.ssh/known_hosts
ARG srcid=0
RUN git clone https://git.braxo.se/daniel/autofw.git RUN git clone https://git.braxo.se/daniel/autofw.git
WORKDIR /opt/autofw/src WORKDIR /opt/autofw/src

View file

@ -6,9 +6,12 @@ img=autofw-$arch
# ssh-keyscan git.braxo.se > git-keys # 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 export DOCKER_BUILDKIT=1
docker build \ docker build \
--build-arg srcid=$srcid \
--platform $pf \ --platform $pf \
-t $img \ -t $img \
. .