From 780f0a573d7f2ed579e6602fd7662173e08e3d8a Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Mon, 15 Apr 2019 22:43:13 -0700 Subject: [PATCH] Slim image for WP.org plugin deploys --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- debian/wp-org-deploy/Dockerfile | 16 ++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 debian/wp-org-deploy/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c1b9c2..1fcf0ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ build-golang-dev: except: - master -# Debian Stretch builds +# Debian Busters builds build-debian-buster-build-master: stage: deploy script: @@ -66,7 +66,7 @@ build-debian-buster-build-dev: - docker push "$CI_REGISTRY_IMAGE/debian:buster-dev" except: - master - + # Debian Stretch builds build-debian-stretch-build-master: stage: deploy @@ -103,6 +103,24 @@ build-debian-jessie-build-dev: except: - master +# Debian WP.org Plugin deploy builds +build-debian-wp-org-deploy-build-master: + stage: deploy + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE/debian:wp-org-deploy" ./debian/wp-org-deploy + - docker push "$CI_REGISTRY_IMAGE/debian:wp-org-deploy" + only: + - master + when: manual + +build-debian-wp-org-deploy-build-dev: + stage: deploy + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE/debian:wp-org-deploy-dev" ./debian/wp-org-deploy + - docker push "$CI_REGISTRY_IMAGE/debian:wp-org-deploy-dev" + except: + - master + # PHP 7.3 build-php-7.3-master: stage: deploy diff --git a/debian/wp-org-deploy/Dockerfile b/debian/wp-org-deploy/Dockerfile new file mode 100644 index 0000000..ece1520 --- /dev/null +++ b/debian/wp-org-deploy/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:stretch-slim + +LABEL maintainer="ethitter" +LABEL version="1.0" + +RUN echo "deb http://security.debian.org/ stretch/updates main" >> /etc/apt/sources.list + +RUN apt-get update \ + && apt-get -y --no-install-recommends install \ + ca-certificates \ + curl \ + git \ + rsync \ + subversion \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* -- GitLab