Skip to content
Snippets Groups Projects
Unverified Commit 55bb13a6 authored by Daniel Ecer's avatar Daniel Ecer Committed by GitHub
Browse files

push stable image (#255)

* push stable image

* renamed repo tag
parent 0a4ac0ad
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,11 @@ elifePipeline {
).trim()
echo "baseGrobidTag: ${baseGrobidTag}"
assert baseGrobidTag != ''
if (env.TAG_NAME) {
version = env.TAG_NAME - 'v'
} else {
version = 'develop'
}
}
stage 'Build and run tests', {
......@@ -50,5 +55,27 @@ elifePipeline {
unstable_image.push()
}
}
elifeTagOnly { repoTag ->
stage 'Push stable sciencebeam-trainer-delft image', {
def image = DockerImage.elifesciences(this, 'sciencebeam-trainer-delft', commit)
image.tag('latest').push()
image.tag(version).push()
}
stage 'Push stable sciencebeam-trainer-delft-grobid image', {
def tag = "${baseGrobidTag}-${commit}"
def image = DockerImage.elifesciences(this, 'sciencebeam-trainer-delft-grobid', tag)
image.tag('latest').push()
image.tag(version).push()
}
stage 'Push stable sciencebeam-trainer-delft-trainer-grobid image', {
def tag = "${baseGrobidTag}-${commit}"
def image = DockerImage.elifesciences(this, 'sciencebeam-trainer-delft-trainer-grobid', tag)
image.tag('latest').push()
image.tag(version).push()
}
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment