mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-07 16:33:08 +00:00
ci: drop pushing commit tags for Docker
Nobody is using them and we are just cluttering up the repo. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fcee52757e
commit
c132ee4303
@ -37,12 +37,8 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps { script {
|
steps { script {
|
||||||
def imageTag = GIT_COMMIT.take(8)
|
|
||||||
if (env.JOB_BASE_NAME == 'release') {
|
|
||||||
imageTag = params.GIT_REF
|
|
||||||
}
|
|
||||||
image = docker.build(
|
image = docker.build(
|
||||||
"${params.IMAGE_NAME}:${imageTag}",
|
"${params.IMAGE_NAME}:${params.IMAGE_TAG}",
|
||||||
"--build-arg='GIT_COMMIT=${GIT_COMMIT.take(8)}' ."
|
"--build-arg='GIT_COMMIT=${GIT_COMMIT.take(8)}' ."
|
||||||
)
|
)
|
||||||
} }
|
} }
|
||||||
@ -51,19 +47,13 @@ pipeline {
|
|||||||
stage('Push') {
|
stage('Push') {
|
||||||
steps { script {
|
steps { script {
|
||||||
withDockerRegistry([
|
withDockerRegistry([
|
||||||
credentialsId: params.DOCKER_CRED, url: ""
|
credentialsId: params.DOCKER_CRED, url: ''
|
||||||
]) {
|
]) {
|
||||||
image.push()
|
image.push()
|
||||||
|
/* If Git ref is a tag push it as Docker tag too. */
|
||||||
|
if (env.GIT_BRANCH ==~ /v\d+\.\d+\.\d+.*/) {
|
||||||
|
image.push(params.GIT_REF)
|
||||||
}
|
}
|
||||||
} }
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy') {
|
|
||||||
steps { script {
|
|
||||||
withDockerRegistry([
|
|
||||||
credentialsId: params.DOCKER_CRED, url: ""
|
|
||||||
]) {
|
|
||||||
image.push(env.IMAGE_TAG)
|
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user