diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index f6442efae9..9833b72b32 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1.3 # Copyright (c) 2018 Red Hat, Inc. # Copyright (c) 2016 The Gitea Authors # Copyright (c) 2015 The Gogs Authors @@ -82,6 +83,7 @@ RUN ln -s /app/gitea/gitea /usr/local/bin/gitea # Copy our custom templates COPY custom/ /custom/ +RUN --mount=type=bind,from=opendevorg/assets,target=/tmp/assets cp /tmp/assets/* /custom/public/img/ ENV GITEA_CUSTOM /custom diff --git a/docker/gitea/custom/public/img/favicon.ico b/docker/gitea/custom/public/img/favicon.ico deleted file mode 100644 index 8a92dda1e9..0000000000 Binary files a/docker/gitea/custom/public/img/favicon.ico and /dev/null differ diff --git a/docker/gitea/custom/public/img/logo.svg b/docker/gitea/custom/public/img/logo.svg deleted file mode 100644 index 213491a130..0000000000 --- a/docker/gitea/custom/public/img/logo.svg +++ /dev/null @@ -1,49 +0,0 @@ - -image/svg+xml \ No newline at end of file diff --git a/docker/gitea/custom/public/img/opendev-sm.png b/docker/gitea/custom/public/img/opendev-sm.png deleted file mode 100644 index 789b7c9073..0000000000 Binary files a/docker/gitea/custom/public/img/opendev-sm.png and /dev/null differ diff --git a/zuul.d/docker-images/gitea.yaml b/zuul.d/docker-images/gitea.yaml index 9e32a0ad3e..d4bf28fab7 100644 --- a/zuul.d/docker-images/gitea.yaml +++ b/zuul.d/docker-images/gitea.yaml @@ -34,8 +34,10 @@ name: system-config-build-image-gitea description: Build a gitea image. parent: system-config-build-image + requires: assets-container-image provides: gitea-container-image vars: &gitea_vars + docker_use_buildkit: true docker_images: - context: docker/gitea target: gitea @@ -51,6 +53,7 @@ name: system-config-upload-image-gitea description: Build and upload a gitea image. parent: system-config-upload-image + requires: assets-container-image provides: gitea-container-image vars: *gitea_vars files: *gitea_files diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index f55e0031fd..4c19ae6c3e 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -113,7 +113,11 @@ - name: system-config-build-image-python-base-3.8 soft: true - system-config-build-image-etherpad - - system-config-build-image-gitea + - system-config-build-image-gitea: + dependencies: + - name: opendev-buildset-registry + - name: system-config-build-image-assets + soft: true - system-config-build-image-grafana - system-config-build-image-haproxy-statsd: dependencies: @@ -257,7 +261,11 @@ - system-config-upload-image-hound - system-config-upload-image-assets - system-config-upload-image-etherpad - - system-config-upload-image-gitea + - system-config-upload-image-gitea: + dependencies: + - name: opendev-buildset-registry + - name: system-config-upload-image-assets + soft: true - system-config-upload-image-grafana - system-config-upload-image-refstack - system-config-upload-image-haproxy-statsd: