diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 823d4491..08b716fa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,3 +11,5 @@ jobs: name: runner-manager namespace: scality tag: ${{ github.ref_name }} + build-args: | + VERSION=${{ github.ref_name }} diff --git a/Dockerfile b/Dockerfile index c97184e2..b8e5cee2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,13 @@ FROM python:3.11-slim +ARG VERSION=dev + +LABEL org.opencontainers.image.title=runner-manager +LABEL org.opencontainers.image.source=https://github.com/scality/runner-manager +LABEL org.opencontainers.image.description="Manager for GitHub Actions self-hosted runners" +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.version=$VERSION + EXPOSE 8000 HEALTHCHECK NONE