Squashed '.ci/' changes from 8df60af..cdc32e0
cdc32e0 Improve cleanup flow git-subtree-dir: .ci git-subtree-split: cdc32e01eae67cd2635fa89cad114c6f6a11359f
This commit is contained in:
parent
93faaeb6ce
commit
0152d90502
@ -62,10 +62,12 @@ def call(Map config=[:]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Push to container registry if not PR
|
// Push to container registry if not PR
|
||||||
|
// incl. basic registry retention removing any untagged images
|
||||||
stage('Push') {
|
stage('Push') {
|
||||||
when { not { changeRequest() } }
|
when { not { changeRequest() } }
|
||||||
steps {
|
steps {
|
||||||
sh 'make push'
|
sh 'make push'
|
||||||
|
sh 'make rm-remote-untagged'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,12 +76,6 @@ def call(Map config=[:]) {
|
|||||||
steps {
|
steps {
|
||||||
sh 'make clean'
|
sh 'make clean'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Basic registry retention removing untagged images if not PR only
|
|
||||||
when { not { changeRequest() } }
|
|
||||||
steps {
|
|
||||||
sh 'make rm-remote-untagged'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user