From 601dc0f120a5bb6307dbc1bba5059d8fbb3a7712 Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 12 Nov 2024 13:18:22 +0100 Subject: [PATCH] Download debian archive for specific release instead of latest --- .github/workflows/bump-version-and-create-release.yaml | 4 +++- Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version-and-create-release.yaml b/.github/workflows/bump-version-and-create-release.yaml index 1679345..faaecf1 100644 --- a/.github/workflows/bump-version-and-create-release.yaml +++ b/.github/workflows/bump-version-and-create-release.yaml @@ -99,12 +99,14 @@ jobs: build-and-run-release-tests: - needs: create-release + needs: [compute-version, create-release] runs-on: ubuntu-latest steps: - name: Build release test Docker image uses: docker/build-push-action@v6 with: + build-args: | + RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/download/${{ needs.compute-version.outputs.new_tag }} push: false tags: | ghcr.io/kit-mrt/util_caching_release_tests diff --git a/Dockerfile b/Dockerfile index afb8c77..f2c9430 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,10 +48,12 @@ RUN cmake .. && \ FROM base AS release_test +ARG RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/latest/download/ + # This downloads the latest util_caching debian release and adds it to the docker image # This "bloats" the image. But otherwise, we'd have to installing wget and ca-certificates # temporarily to download and install the package in one docker layer… -ADD https://github.com/KIT-MRT/util_caching/releases/latest/download/libutil-caching-dev.deb /tmp/debfiles/ +ADD ${RELEASE_DOWNLOAD_URL}/libutil-caching-dev.deb /tmp/debfiles/ # Install util_caching from release debian package RUN dpkg -i /tmp/debfiles/*.deb && \