Skip to content

Commit 2819247

Browse files
committed
Download debian archive for specific release instead of latest
1 parent b57f12f commit 2819247

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/bump-version-and-create-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ jobs:
105105
- name: Build release test Docker image
106106
uses: docker/build-push-action@v6
107107
with:
108+
build-args:
109+
RELEASE_DOWNLOAD_URL: ${{ needs.create-release.outputs.html_url }}
108110
push: false
109111
tags: |
110112
ghcr.io/kit-mrt/util_caching_release_tests

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ RUN cmake .. && \
4848

4949
FROM base AS release_test
5050

51+
ARG RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/latest/download/
52+
5153
# This downloads the latest util_caching debian release and adds it to the docker image
5254
# This "bloats" the image. But otherwise, we'd have to installing wget and ca-certificates
5355
# temporarily to download and install the package in one docker layer…
54-
ADD https://github.com/KIT-MRT/util_caching/releases/latest/download/libutil-caching-dev.deb /tmp/debfiles/
56+
ADD ${RELEASE_DOWNLOAD_URL}/libutil-caching-dev.deb /tmp/debfiles/
5557

5658
# Install util_caching from release debian package
5759
RUN dpkg -i /tmp/debfiles/*.deb && \

0 commit comments

Comments
 (0)