Skip to content

Commit

Permalink
Download debian archive for specific release instead of latest
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 12, 2024
1 parent b57f12f commit 601dc0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bump-version-and-create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 601dc0f

Please sign in to comment.