removed extra command that borks CICD and added extra [] to allow image to start without error

This commit is contained in:
Josh Knapp 2023-04-06 17:24:53 -07:00
parent be28df5f9e
commit cfa729e2fb

View File

@ -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