Compare commits
2 Commits
v2023.7.6-
...
v2023.7.7-
Author | SHA1 | Date | |
---|---|---|---|
6734cf6526 | |||
368273f1ee |
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@ -29,12 +29,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Release') {
|
stage('Release binaries and packages') {
|
||||||
when {
|
when {
|
||||||
anyOf {
|
anyOf {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
branch 'develop'
|
branch 'develop'
|
||||||
branch 'ci-docker-release'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@ -47,9 +46,31 @@ pipeline {
|
|||||||
])
|
])
|
||||||
]) {
|
]) {
|
||||||
sh 'make gitea-release'
|
sh 'make gitea-release'
|
||||||
sh '''
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build and release Docker image') {
|
||||||
|
when {
|
||||||
|
anyOf {
|
||||||
|
branch 'master'
|
||||||
|
branch 'develop'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
withCredentials([
|
||||||
|
usernamePassword([
|
||||||
|
credentialsId: 'kipp-credentials',
|
||||||
|
usernameVariable: 'DOCKER_REGISTRY_USERNAME',
|
||||||
|
passwordVariable: 'DOCKER_REGISTRY_PASSWORD'
|
||||||
|
])
|
||||||
|
]) {
|
||||||
|
sh """
|
||||||
|
echo '${env.DOCKER_REGISTRY_PASSWORD}' | docker login --username '${env.DOCKER_REGISTRY_USERNAME}' --password-stdin reg.cadoles.com
|
||||||
make docker-build docker-release
|
make docker-build docker-release
|
||||||
'''
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,22 @@ ARG https_proxy=
|
|||||||
|
|
||||||
# Install dev environment dependencies
|
# Install dev environment dependencies
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
||||||
|
apt clean &&\
|
||||||
apt-get update -y &&\
|
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
|
# 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 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
|
ARG GO_VERSION=1.20.4
|
||||||
|
|
||||||
# Install Go
|
# Install Go
|
||||||
|
Reference in New Issue
Block a user