Skip to content

Commit

Permalink
Fix lables to not have - character
Browse files Browse the repository at this point in the history
Annoyingly, the `docker inspect --format` syntax doesn't support
- characters in labels.

So rename `build-date` to `created`, and `vcs-ref` to gitref
  • Loading branch information
bloodearnest committed Oct 22, 2024
1 parent 9c8be1b commit a6ec8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,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 \
org.opensafely.base.gitref=$BASE_GITREF

FROM base-docker as base-action

Expand Down

0 comments on commit a6ec8de

Please sign in to comment.