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
|
||||
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:
|
||||
- name: build-versions
|
||||
- name: publish-cac-74
|
||||
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
|
||||
- put: build-cac-74
|
||||
params:
|
||||
build: cac
|
||||
build_args:
|
||||
PHPVER: 74
|
||||
- name: publish-cac-80
|
||||
plan:
|
||||
- get: cac
|
||||
trigger: true
|
||||
- put: build-cac-80
|
||||
params:
|
||||
build: cac
|
||||
build_args:
|
||||
PHPVER: 80
|
||||
- name: publish-cac-81
|
||||
plan:
|
||||
- get: cac
|
||||
trigger: true
|
||||
- put: build-cac-81
|
||||
params:
|
||||
build: cac
|
||||
build_args:
|
||||
PHPVER: 81
|
||||
- name: publish-cac-82
|
||||
plan:
|
||||
- get: cac
|
||||
trigger: true
|
||||
- put: build-cac-82
|
||||
params:
|
||||
build: cac
|
||||
build_args:
|
||||
PHPVER: 82
|
||||
|
Loading…
Reference in New Issue
Block a user