aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile43
1 files changed, 33 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 039285d..22dd78e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -28,19 +28,39 @@ pipeline {
}
stage('Build') {
parallel {
- stage('arm64/v8') {
+ stage('arm64/v8 stable') {
steps {
sh"""
buildah build --pull --platform linux/arm64/v8 --network host \
- --tag $IMAGE_NAME:latest --manifest $PROJECT .
+ --tag $IMAGE_NAME:stable --build-arg NEOVIM_VERSION=stable \
+ --manifest $PROJECT .
"""
}
}
- stage('amd64') {
+ stage('amd64 stable') {
steps {
sh"""
buildah build --pull --platform linux/amd64 --network host \
- --tag $IMAGE_NAME:latest --manifest $PROJECT .
+ --tag $IMAGE_NAME:stable --build-arg NEOVIM_VERSION=stable \
+ --manifest $PROJECT .
+ """
+ }
+ }
+ stage('arm64/v8 nightly') {
+ steps {
+ sh"""
+ buildah build --pull --platform linux/arm64/v8 --network host \
+ --tag $IMAGE_NAME:nightly --build-arg NEOVIM_VERSION=nightly \
+ --manifest $PROJECT .
+ """
+ }
+ }
+ stage('amd64 nightly') {
+ steps {
+ sh"""
+ buildah build --pull --platform linux/amd64 --network host \
+ --tag $IMAGE_NAME:nightly --build-arg NEOVIM_VERSION=nightly \
+ --manifest $PROJECT .
"""
}
}
@@ -62,13 +82,16 @@ pipeline {
}
}
}
- stage('Push latest') {
+ stage('Push') {
when { branch 'master' }
- steps { sh "buildah manifest push --all $PROJECT docker://$IMAGE_NAME:latest" }
- }
- stage('Push tag') {
- when { allOf { branch 'master'; expression { return env.TAG_NAME == '' ? false : true } } }
- steps { sh "buildah manifest push --all $PROJECT docker://$IMAGE_NAME:$TAG_NAME" }
+ parallel {
+ stage('stable') {
+ steps { sh "buildah manifest push --all $PROJECT docker://$IMAGE_NAME:stable" }
+ }
+ stage('nightly') {
+ steps { sh "buildah manifest push --all $PROJECT docker://$IMAGE_NAME:nightly" }
+ }
+ }
}
}
}