From b014dc22b18b7a06d17537cdd74c4bf7ee3909f0 Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Thu, 22 Apr 2021 09:44:41 -0700 Subject: [PATCH 1/2] Update GitLab to the 13.11.0 Minor Feature Release --- Dockerfile | 11 ++++++++++- build-scripts/build.sh | 2 +- hardening_manifest.yaml | 8 ++++---- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93b1253..7f2f00c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GITLAB_VERSION=v13.10.3-ubi8 +ARG GITLAB_VERSION=v13.11.0-ubi8 ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082 ARG BASE_IMAGE=redhat/ubi/ubi8 @@ -11,6 +11,15 @@ FROM ${UBI_IMAGE} ARG DNF_OPTS ARG KUBECTL_VERSION +LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/kubectl" \ + name="GitLab kubectl" \ + maintainer="GitLab Distribution Team" \ + vendor="GitLab" \ + version=${KUBECTL_VERSION} \ + release=${KUBECTL_VERSION} \ + summary="GitLab kubectl used to configure Kubernetes." \ + description="GitLab kubectl used to configure Kubernetes." + ADD kubectl.tar.gz / RUN chmod +x /usr/local/bin/{kubectl,yq} \ diff --git a/build-scripts/build.sh b/build-scripts/build.sh index 87260fb..85633a6 100755 --- a/build-scripts/build.sh +++ b/build-scripts/build.sh @@ -4,7 +4,7 @@ set -euxo pipefail -TAG=${1:-13.10.3} +TAG=${1:-13.11.0} REPOSITORY=${2:-} DOCKER_OPTS=${DOCKER_OPTS:-""} diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml index cc50fb0..eda465d 100644 --- a/hardening_manifest.yaml +++ b/hardening_manifest.yaml @@ -5,7 +5,7 @@ name: "gitlab/gitlab/kubectl" # The most specific version should be the first tag and will be shown # on ironbank.dsop.io tags: - - "13.10.3" + - "13.11.0" - "latest" # Build args passed to Dockerfile ARGs args: @@ -22,7 +22,7 @@ labels: org.opencontainers.image.url: "https://about.gitlab.com/" ## Name of the distributing entity, organization or individual org.opencontainers.image.vendor: "Gitlab" - org.opencontainers.image.version: "13.10.3" + org.opencontainers.image.version: "13.11.0" ## Keywords to help with search (ex. "cicd,gitops,golang") mil.dso.ironbank.image.keywords: "gitlab, git, gitops" ## This value can be "opensource" or "commercial" @@ -43,8 +43,8 @@ maintainers: username: "alfontaine" email: "alan.fontaine@centauricorp.com" resources: - - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.3-ubi8/kubectl.tar.gz" + - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.11.0-ubi8/kubectl.tar.gz" filename: "kubectl.tar.gz" validation: type: "sha256" - value: "7fb96c826cdb2d41241b36124a4e5425e0570e3bfe17dabb51ffeac732e8b96e" + value: "615ed09b140c413d4854b02bb8e967da93258da3461f9a624ad3485f8bfe2e6f" -- GitLab From 87dd7825956ff03d25ccdc0766164c12decb72e4 Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Thu, 22 Apr 2021 10:26:23 -0700 Subject: [PATCH 2/2] Drop labels from the dockerfile --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f2f00c..9647873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,15 +11,6 @@ FROM ${UBI_IMAGE} ARG DNF_OPTS ARG KUBECTL_VERSION -LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/kubectl" \ - name="GitLab kubectl" \ - maintainer="GitLab Distribution Team" \ - vendor="GitLab" \ - version=${KUBECTL_VERSION} \ - release=${KUBECTL_VERSION} \ - summary="GitLab kubectl used to configure Kubernetes." \ - description="GitLab kubectl used to configure Kubernetes." - ADD kubectl.tar.gz / RUN chmod +x /usr/local/bin/{kubectl,yq} \ -- GitLab