From 5a043a0ac8a4fc27dbdebefefe6650ecd6ec1bc7 Mon Sep 17 00:00:00 2001 From: James Pace Date: Sun, 16 Oct 2022 11:42:37 -0400 Subject: [PATCH] integrate buildah with pipeline. --- pipelines/j7s-os-pipeline.yaml | 16 +++++++++++++++- tasks/j7s-os-buildah.yaml | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/pipelines/j7s-os-pipeline.yaml b/pipelines/j7s-os-pipeline.yaml index 71b9695..d27d963 100644 --- a/pipelines/j7s-os-pipeline.yaml +++ b/pipelines/j7s-os-pipeline.yaml @@ -43,4 +43,18 @@ spec: - name: image-name value: $(params.image-name) taskRef: - name: j7s-os-image-build \ No newline at end of file + 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 \ No newline at end of file diff --git a/tasks/j7s-os-buildah.yaml b/tasks/j7s-os-buildah.yaml index 4847a65..bb0d9bc 100644 --- a/tasks/j7s-os-buildah.yaml +++ b/tasks/j7s-os-buildah.yaml @@ -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