Skip to content

Commit

Permalink
Ignore cache for Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jclehner committed Sep 30, 2024
1 parent 30f4507 commit e6767ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ WORKDIR /usr/src/nmrpflash
RUN wget -O npcap-sdk.zip https://npcap.com/dist/npcap-sdk-${NPCAP_VERSION}.zip
RUN unzip npcap-sdk.zip -d Npcap

RUN make release/linux-appimage
ARG CACHEBUST=1

RUN make clean
RUN make release/linux-appimage
RUN make MINGW=i686-w64-mingw32- release release/win32

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ nmrpflash.ico: nmrpflash.svg
convert -background transparent -define icon:auto-resize=256,64,48,32,16 $< $@

build-release-with-docker:
docker build -t nmrpflash .
docker build --build-arg CACHEBUST=$(shell date +%s) --progress=plain -t nmrpflash .
docker create --name dummy nmrpflash
docker cp dummy:/usr/src/nmrpflash/nmrpflash-$(VERSION)-linux-$(ARCH).zip .
docker cp dummy:/usr/src/nmrpflash/nmrpflash-$(VERSION)-win32.zip .
Expand Down

0 comments on commit e6767ec

Please sign in to comment.