automated pipeline to build images
This commit is contained in:
parent
32f280ec28
commit
1a4faad685
@ -6,83 +6,65 @@ resources:
|
|||||||
uri: https://repo.anhonesthost.net/cloud-hosting-platform/cloud-apache-container.git
|
uri: https://repo.anhonesthost.net/cloud-hosting-platform/cloud-apache-container.git
|
||||||
branch: trunk
|
branch: trunk
|
||||||
|
|
||||||
|
- name: build-cac-74
|
||||||
|
type: docker-image
|
||||||
|
source:
|
||||||
|
repository: registry.dnspegasus.net/cac
|
||||||
|
tag: 74
|
||||||
|
|
||||||
|
- name: build-cac-80
|
||||||
|
type: docker-image
|
||||||
|
source:
|
||||||
|
repository: registry.dnspegasus.net/cac
|
||||||
|
tag: 80
|
||||||
|
|
||||||
|
- name: build-cac-81
|
||||||
|
type: docker-image
|
||||||
|
source:
|
||||||
|
repository: registry.dnspegasus.net/cac
|
||||||
|
tag: 81
|
||||||
|
|
||||||
|
- name: build-cac-82
|
||||||
|
type: docker-image
|
||||||
|
source:
|
||||||
|
repository: registry.dnspegasus.net/cac
|
||||||
|
tag: 82
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: build-versions
|
- name: publish-cac-74
|
||||||
plan:
|
plan:
|
||||||
- get: cac
|
- get: cac
|
||||||
trigger: true
|
trigger: true
|
||||||
- task: build-74
|
- put: build-cac-74
|
||||||
privileged: true
|
params:
|
||||||
config:
|
build: cac
|
||||||
platform: linux
|
build_args:
|
||||||
image_resource:
|
PHPVER: 74
|
||||||
type: docker-image
|
- name: publish-cac-80
|
||||||
source: {repository: docker}
|
plan:
|
||||||
inputs:
|
- get: cac
|
||||||
- name: cac
|
trigger: true
|
||||||
run:
|
- put: build-cac-80
|
||||||
path: sh
|
params:
|
||||||
args:
|
build: cac
|
||||||
- -exc
|
build_args:
|
||||||
- |
|
PHPVER: 80
|
||||||
dockerd&
|
- name: publish-cac-81
|
||||||
cd cac/
|
plan:
|
||||||
docker build . --build-arg PHPVER=74 -t registry.dnspegasus.net/cac:74
|
- get: cac
|
||||||
docker push registry.dnspegasus.net/cac:74
|
trigger: true
|
||||||
|
- put: build-cac-81
|
||||||
- task: build-80
|
params:
|
||||||
privileged: true
|
build: cac
|
||||||
config:
|
build_args:
|
||||||
platform: linux
|
PHPVER: 81
|
||||||
image_resource:
|
- name: publish-cac-82
|
||||||
type: docker-image
|
plan:
|
||||||
source: {repository: docker}
|
- get: cac
|
||||||
inputs:
|
trigger: true
|
||||||
- name: cac
|
- put: build-cac-82
|
||||||
run:
|
params:
|
||||||
path: sh
|
build: cac
|
||||||
args:
|
build_args:
|
||||||
- -exc
|
PHPVER: 82
|
||||||
- |
|
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user