diff --git a/Dockerfile b/Dockerfile index a0a2eb6..e2c47ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -204,7 +204,6 @@ ARG PHP_VERSION ARG PHP_SERVER ARG LICENSE="WTFPL" ARG ENV_PORTS="" -ARG GIT_VERSION="$(git -C . show-ref --head --dereference 2>/dev/null|grep ' HEAD' |awk -F' ' '{print $1}')" USER ${USER} WORKDIR /root @@ -222,7 +221,7 @@ LABEL org.opencontainers.image.schema-version="${BUILD_VERSION}" LABEL org.opencontainers.image.url="https://hub.docker.com/r/casjaysdev/almalinux" LABEL org.opencontainers.image.url.source="https://hub.docker.com/r/casjaysdev/almalinux" LABEL org.opencontainers.image.vcs-type="Git" -LABEL org.opencontainers.image.vcs-ref="${GIT_VERSION}" +LABEL org.opencontainers.image.vcs-ref="${BUILD_VERSION}" LABEL org.opencontainers.image.vcs-url="https://github.com/casjaysdev/almalinux" LABEL org.opencontainers.image.documentation="https://github.com/casjaysdev/almalinux" LABEL com.github.containers.toolbox="false" diff --git a/Dockerfile.8 b/Dockerfile.8 index 7cee5fa..c0fcafd 100644 --- a/Dockerfile.8 +++ b/Dockerfile.8 @@ -204,7 +204,6 @@ ARG PHP_VERSION ARG PHP_SERVER ARG LICENSE="WTFPL" ARG ENV_PORTS="" -ARG GIT_VERSION="$(git -C . show-ref --head --dereference 2>/dev/null|grep ' HEAD' |awk -F' ' '{print $1}')" USER ${USER} WORKDIR /root @@ -222,7 +221,7 @@ LABEL org.opencontainers.image.schema-version="${BUILD_VERSION}" LABEL org.opencontainers.image.url="https://hub.docker.com/r/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.url.source="https://hub.docker.com/r/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.vcs-type="Git" -LABEL org.opencontainers.image.vcs-ref="${GIT_VERSION}" +LABEL org.opencontainers.image.vcs-ref="${BUILD_VERSION}" LABEL org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.documentation="https://github.com/casjaysdevdocker/almalinux" LABEL com.github.containers.toolbox="false" diff --git a/Dockerfile.9 b/Dockerfile.9 index e7277ab..49668ef 100644 --- a/Dockerfile.9 +++ b/Dockerfile.9 @@ -204,7 +204,6 @@ ARG PHP_VERSION ARG PHP_SERVER ARG LICENSE="WTFPL" ARG ENV_PORTS="" -ARG GIT_VERSION="$(git -C . show-ref --head --dereference 2>/dev/null|grep ' HEAD' |awk -F' ' '{print $1}')" USER ${USER} WORKDIR /root @@ -222,7 +221,7 @@ LABEL org.opencontainers.image.schema-version="${BUILD_VERSION}" LABEL org.opencontainers.image.url="https://hub.docker.com/r/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.url.source="https://hub.docker.com/r/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.vcs-type="Git" -LABEL org.opencontainers.image.vcs-ref="${GIT_VERSION}" +LABEL org.opencontainers.image.vcs-ref="${BUILD_VERSION}" LABEL org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/almalinux" LABEL org.opencontainers.image.documentation="https://github.com/casjaysdevdocker/almalinux" LABEL com.github.containers.toolbox="false"