From cfa729e2fb09181c969978fd6b5214f6af2845ef Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Thu, 6 Apr 2023 17:24:53 -0700 Subject: [PATCH] removed extra command that borks CICD and added extra [] to allow image to start without error --- pipeline/automated-build.yml | 88 ++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 pipeline/automated-build.yml diff --git a/pipeline/automated-build.yml b/pipeline/automated-build.yml new file mode 100644 index 0000000..0a11abd --- /dev/null +++ b/pipeline/automated-build.yml @@ -0,0 +1,88 @@ +--- +resources: +- name: cac + type: git + source: + uri: https://repo.anhonesthost.net/cloud-hosting-platform/cloud-apache-container.git + branch: trunk + +jobs: +- name: build-versions + plan: + - get: cac + trigger: true + - task: build-74 + privileged: true + config: + platform: linux + image_resource: + type: docker-image + source: {repository: docker} + inputs: + - name: cac + run: + path: sh + args: + - -exc + - | + dockerd& + cd cac/ + docker build . --build-arg PHPVER=74 -t registry.dnspegasus.net/cac:74 + docker push registry.dnspegasus.net/cac:74 + + - task: build-80 + privileged: true + config: + platform: linux + image_resource: + type: docker-image + source: {repository: docker} + inputs: + - name: cac + run: + path: sh + args: + - -exc + - | + dockerd& + cd cac/ + docker build . --build-arg PHPVER=80 -t registry.dnspegasus.net/cac:80 + docker push registry.dnspegasus.net/cac:80 + + - task: build-81 + privileged: true + config: + platform: linux + image_resource: + type: docker-image + source: {repository: docker} + inputs: + - name: cac + run: + path: sh + args: + - -exc + - | + dockerd& + cd cac/ + docker build . --build-arg PHPVER=81 -t registry.dnspegasus.net/cac:81 + docker push registry.dnspegasus.net/cac:81 + + - task: build-82 + config: + platform: linux + image_resource: + type: docker-image + source: {repository: docker} + inputs: + - name: cac + run: + path: sh + args: + - -exc + - | + dockerd& + cd cac/ + docker build . --build-arg PHPVER=82 -t registry.dnspegasus.net/cac:82 + docker push registry.dnspegasus.net/cac:82 +