From 6e3bc2666a434818c014fdcd072df656a794e366 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 6 Jul 2023 09:33:52 -0600 Subject: [PATCH] chore(ci): release docker image --- Jenkinsfile | 4 ++++ misc/jenkins/Dockerfile | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 868ed14..2a48aa8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,6 +34,7 @@ pipeline { anyOf { branch 'master' branch 'develop' + branch 'ci-docker-release' } } steps { @@ -46,6 +47,9 @@ pipeline { ]) ]) { sh 'make gitea-release' + sh ''' + make docker-build docker-release + ''' } } } diff --git a/misc/jenkins/Dockerfile b/misc/jenkins/Dockerfile index b520dfd..f1ad7e1 100644 --- a/misc/jenkins/Dockerfile +++ b/misc/jenkins/Dockerfile @@ -8,11 +8,20 @@ ARG https_proxy= # Install dev environment dependencies RUN export DEBIAN_FRONTEND=noninteractive &&\ apt-get update -y &&\ - apt-get install -y --no-install-recommends curl ca-certificates build-essential wget unzip tar git jq + apt-get install -y --no-install-recommends curl ca-certificates build-essential wget unzip tar git jq gnupg # Add LetsEncrypt certificates RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash +RUN install -m 0755 -d /etc/apt/keyrings \ + && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ + && chmod a+r /etc/apt/keyrings/docker.gpg \ + && echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ + "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" \ + | tee /etc/apt/sources.list.d/docker.list > /dev/null \ + && apt-get update \ + && apt-get install -y docker-ce-cli + ARG GO_VERSION=1.20.4 # Install Go