blob: 1f3f31961e3bf7e89a1ea753bafc4a85390d6f11 [file] [log] [blame]
Saheer Babuc87147b2025-08-15 12:27:32 +01001pipeline {
2 agent {
3 kubernetes {
4 yaml """
5apiVersion: v1
6kind: Pod
7spec:
8 volumes:
9 - name: docker-auth
10 emptyDir: {}
11
12 containers:
13 - name: awscli
14 image: amazon/aws-cli
15 command: ['cat']
16 tty: true
17 volumeMounts:
18 - name: docker-auth
19 mountPath: /root/.docker
20
21 - name: buildah
22 image: quay.io/buildah/stable
23 command: ['cat']
24 tty: true
25 env:
26 - name: STORAGE_DRIVER
27 value: vfs
28 volumeMounts:
29 - name: docker-auth
30 mountPath: /root/.docker
31"""
32 defaultContainer 'buildah'
33 }
34 }
35
Saheer Babuc87147b2025-08-15 12:27:32 +010036 stages {
Saheer Babudbbf8572025-08-15 12:40:21 +010037 stage('Build and Push Multiple Images') {
Saheer Babu1a0c5a22025-08-15 12:41:43 +010038 steps {
39 container('buildah') {
40 checkout scm
41 sh "env"
42 sh "ci-dockerfiles-deployment/build-version.sh"
43 sh "ci-dockerfiles-deployment/builders.sh"
44 sh "ci-dockerfiles-deployment/report.sh"
45 }
Saheer Babuc87147b2025-08-15 12:27:32 +010046 }
Saheer Babuc87147b2025-08-15 12:27:32 +010047 }
Saheer Babuc87147b2025-08-15 12:27:32 +010048 }
Saheer Babudbbf8572025-08-15 12:40:21 +010049}
50
51
52