diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index 52c2378..6c30a62 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -3,7 +3,7 @@ depends_on: pipeline: buildImage: - image: plugins/docker + image: woodpeckerci/plugin-docker-buildx settings: registry: gitea.ocram85.com repo: gitea.ocram85.com/codeserver/arkanum @@ -16,6 +16,8 @@ pipeline: from_secret: gitea_user password: from_secret: gitea_passwd + build_args: + - VERSION="Tag ${CI_COMMIT_TAG} - Branch ${CI_COMMIT_SOURCE_BRANCH} - PR ${CI_COMMIT_PULL_REQUEST}" when: event: - push diff --git a/.woodpecker/.next.yml b/.woodpecker/.next.yml index bf2c4c8..e3957b9 100644 --- a/.woodpecker/.next.yml +++ b/.woodpecker/.next.yml @@ -15,6 +15,8 @@ pipeline: from_secret: gitea_user password: from_secret: gitea_passwd + build_args: + - VERSION="Tag ${CI_COMMIT_TAG} - Branch ${CI_COMMIT_SOURCE_BRANCH} - PR ${CI_COMMIT_PULL_REQUEST}" when: event: pull_request diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml index 0cd6f92..c6996b0 100644 --- a/.woodpecker/.test.yml +++ b/.woodpecker/.test.yml @@ -1,6 +1,6 @@ pipeline: testDockerfile: - image: plugins/docker + image: woodpeckerci/plugin-docker-buildx settings: dry_run: true registry: gitea.ocram85.com diff --git a/Dockerfile b/Dockerfile index 0d73259..8680fd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,20 @@ FROM quay.io/linuxserver.io/code-server:4.8.3 +#LABEL build_version="" +LABEL maintainer="OCram85" +ARG VERSION +LABEL build_version="$VERSION" +LABEL org.opencontainers.image.authors="OCram85" +LABEL org.opencontainers.image.vendor="OCram85" + +LABEL org.opencontainers.image.title="Arkanum" +LABEL org.opencontainers.image.description="Code-Server container optimized for daily use." +LABEL org.opencontainers.image.licenses="AGPL-3.0" + +LABEL org.opencontainers.image.url="https://gitea.ocram85.com/CodeServer/arkanum" +LABEL org.opencontainers.image.source="https://gitea.ocram85.com/CodeServer/arkanum.git" +LABEL org.opencontainers.image.documentation="https://gitea.ocram85.com/CodeServer/arkanum" + RUN \ echo "**** install starship prompt ****" && \ curl -sS https://starship.rs/install.sh | sh -s -- -f && \