Compare commits
1 Commits
fffeb0c8da
...
f4bdcee16b
Author | SHA1 | Date |
---|---|---|
chris | f4bdcee16b |
|
@ -15,19 +15,19 @@ pipeline {
|
|||
stage('Build image') {
|
||||
steps {
|
||||
script {
|
||||
sh "buildah login reg.zknt.org -u $ZKNT_CRED_USR -p $ZKNT_CRED_PSW"
|
||||
sh "buildah login -u " + ZKNT_CRED_USR + " -p " + ZKNT_CRED_PSW + " reg.zknt.org"
|
||||
def image = registry + '/' + repo + '/' + project
|
||||
sh "buildah bud -f Containerfile --build-arg DATE=$timeStamp -t pixelfed:test"
|
||||
sh "buildah tag pixelfed:test reg.zknt.org/zknt/pixelfed:test"
|
||||
sh "buildah push " + image + ':test'
|
||||
}
|
||||
script {
|
||||
sh "buildah login docker.io -u $IO_CRED_USR -p $IO_CRED_PSW"
|
||||
sh "buildah login -u $IO_CRED_USR -p $IO_CRED_PSW docker.io"
|
||||
sh "buildah tag pixelfed:test docker.io/zknt/pixelfed:test"
|
||||
sh "buildah push docker.io/zknt/pixelfed:test"
|
||||
}
|
||||
script {
|
||||
sh "buildah login quay.io -u $QUAY_CRED_USR -p $QUAY_CRED_PSW"
|
||||
sh "buildah login -u $QUAY_CRED_USR -p $QUAY_CRED_PSW quay.io"
|
||||
sh "buildah tag pixelfed:test quay.io/zknt/pixelfed:test"
|
||||
sh "buildah push quay.io/zknt/pixelfed:test"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue