Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update caching, and add 24.04 base image #32

Merged
merged 9 commits into from
Oct 23, 2024
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# built from
ARG BASE_BUILD_DATE
ARG BASE_GITREF
LABEL org.opensafely.base.build-date=$BASE_BUILD_DATE \
org.opensafely.base.vcs-ref=$BASE_GITREF
LABEL org.opensafely.base.created=$BASE_BUILD_DATE \
bloodearnest marked this conversation as resolved.
Show resolved Hide resolved
org.opensafely.base.gitref=$BASE_GITREF

FROM base-docker as base-action

Expand Down
2 changes: 1 addition & 1 deletion check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ do
echo "$image: OS $os_version"
test "$os_version" = "VERSION_ID=\"${tag}\"" || { failed=1; echo "Expected os version to be $tag"; }

for label in build-date vcs-ref
for label in created gitref
do
full="org.opensafely.base.$label"
value="$(docker inspect -f "{{ index .Config.Labels \"$full\" }}" "$image")"
Expand Down