integrate buildah with pipeline.

This commit is contained in:
James Pace 2022-10-16 11:42:37 -04:00
parent af2a05e21f
commit 5a043a0ac8
2 changed files with 16 additions and 1 deletions

View File

@ -43,4 +43,18 @@ spec:
- name: image-name
value: $(params.image-name)
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

View File

@ -19,6 +19,7 @@ spec:
image: quay.io/buildah/stable:v1.23.3
workingDir: $(workspaces.source.path)
script: |
set -x
# Login
buildah login --tls-verify=false --username=$USERNAME --password=$PASSWORD $(params.registry)
# Build