integrate buildah with pipeline.

This commit is contained in:
jimmy committed 2022-10-16 11:42:37 -04:00
1 parent af2a05e21f
commit 5a043a0ac8
2 files changed
+16 -1

No files matched your search

+15 -1
View File
@@ -43,4 +43,18 @@ spec:
- name: image-name - name: image-name
value: $(params.image-name) value: $(params.image-name)
taskRef: taskRef:
name: j7s-os-image-build name: j7s-os-image-build
- name: build-deploy-image
runAfter: ["call-make"]
workspaces:
- name: source
workspace: shared-data
params:
- name: commit
value: $(params.image-name)
- name: image
value: j7s-os-deploy:latest
- name: registry
value: 192.168.1.128:8443
taskRef:
name: j7s-os-buildah
+1
View File
@@ -19,6 +19,7 @@ spec:
image: quay.io/buildah/stable:v1.23.3 image: quay.io/buildah/stable:v1.23.3
workingDir: $(workspaces.source.path) workingDir: $(workspaces.source.path)
script: | script: |
set -x
# Login # Login
buildah login --tls-verify=false --username=$USERNAME --password=$PASSWORD $(params.registry) buildah login --tls-verify=false --username=$USERNAME --password=$PASSWORD $(params.registry)
# Build # Build