update drone ci file
This commit is contained in:
parent
fc1690fb7d
commit
a26bb4a494
56
.drone.yml
56
.drone.yml
@ -14,20 +14,21 @@ steps:
|
|||||||
- name: build-base-image
|
- name: build-base-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
repo: h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base
|
||||||
tag: latest
|
tag: latest
|
||||||
target: chill_base_php
|
target: chill_base_php
|
||||||
pull_image: true
|
pull_image: true
|
||||||
cache_from:
|
cache_from:
|
||||||
- h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base:latest
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
|
- chill/base-image:latest
|
||||||
|
|
||||||
- name: composer-install
|
- name: composer-install
|
||||||
image: h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base:latest
|
image: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- composer install --no-scripts --no-interaction
|
- composer install --no-scripts --no-interaction
|
||||||
@ -38,65 +39,34 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn run encore production
|
- yarn run encore production
|
||||||
|
|
||||||
- name: build-image-php
|
- name: build-image-php
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
pull_image: true
|
pull_image: true
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
repo: h3m6q87t.gra7.container-registry.ovh.net/vendee/php
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php
|
||||||
tag:
|
tag:
|
||||||
- ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
cache_from:
|
cache_from:
|
||||||
- h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base:latest
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
|
- chill/base-image:latest
|
||||||
|
|
||||||
- name: build-image-nginx
|
- name: build-image-nginx
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
pull_image: true
|
pull_image: true
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
repo: h3m6q87t.gra7.container-registry.ovh.net/vendee/nginx
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx
|
||||||
tag:
|
tag:
|
||||||
- ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
Dockerfile: docker/nginx/Dockerfile
|
Dockerfile: docker/nginx/Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-base-image
|
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- dockerconfig
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
cron:
|
|
||||||
- base-image
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-base-image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
|
||||||
repo: h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base
|
|
||||||
tag: latest
|
|
||||||
target: chill_base_php
|
|
||||||
pull_image: true
|
|
||||||
cache_from:
|
|
||||||
- h3m6q87t.gra7.container-registry.ovh.net/vendee/php-base:latest
|
|
||||||
|
Loading…
Reference in New Issue
Block a user