diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index b711166..2440662 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -16,6 +16,8 @@ pipeline: from_secret: gitea_user password: from_secret: gitea_passwd + build_args: + - VERSION="$CI_COMMIT_TAG ($CI_COMMIT_BRANCH)" when: event: - push diff --git a/.woodpecker/.next.yml b/.woodpecker/.next.yml index f307712..76b3d7f 100644 --- a/.woodpecker/.next.yml +++ b/.woodpecker/.next.yml @@ -15,5 +15,7 @@ pipeline: from_secret: gitea_user password: from_secret: gitea_passwd + build_args: + - VERSION="$CI_COMMIT_TAG ($CI_COMMIT_BRANCH)" when: event: pull_request diff --git a/Dockerfile b/Dockerfile index 6836d41..41c895a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/linuxserver.io/code-server:4.8.3 #LABEL build_version="" LABEL maintainer="OCram85" -LABEL build_version="$CI_COMMIT_TAG ($CI_COMMIT_BRANCH)" +ARG VERSION +LABEL build_version="$VERSION" LABEL org.opencontainers.image.authors="OCram85" LABEL org.opencontainers.image.vendor="OCram85"