chill-skeleton-basic/.drone.yml

117 lines
3.0 KiB
YAML
Raw Permalink Normal View History

2022-07-11 17:27:00 +00:00
---
kind: pipeline
type: docker
name: build-images
image_pull_secrets:
- dockerconfig
trigger:
event:
- tag
steps:
- name: build-base-image
image: plugins/docker
settings:
2022-07-11 19:46:53 +00:00
username:
2022-07-11 17:27:00 +00:00
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
2022-07-11 19:46:53 +00:00
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base
2022-07-11 17:27:00 +00:00
tag: latest
2023-03-30 16:14:30 +00:00
target: chill_base_php82
2022-07-11 17:27:00 +00:00
pull_image: true
cache_from:
2022-07-11 19:46:53 +00:00
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
- chill/base-image:latest
2022-07-11 17:27:00 +00:00
- name: composer-install
2022-07-11 19:46:53 +00:00
image: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
2022-07-11 17:27:00 +00:00
pull: always
commands:
- composer install --no-scripts --no-interaction
- composer update --with-all-dependencies --no-interaction chill-project/chill-bundles
depends_on:
- build-base-image
2022-07-11 17:27:00 +00:00
- name: build-assets
image: node:14
pull: always
commands:
- yarn install
2022-07-11 19:46:53 +00:00
- yarn run encore production
depends_on:
- composer-install
2022-07-11 17:27:00 +00:00
- name: build-image-php
image: plugins/docker
settings:
pull_image: true
2022-07-11 19:46:53 +00:00
username:
2022-07-11 17:27:00 +00:00
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
2022-07-11 19:46:53 +00:00
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php
tag:
2022-07-11 17:27:00 +00:00
- ${DRONE_TAG}
cache_from:
2022-07-11 19:46:53 +00:00
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
- chill/base-image:latest
depends_on:
- build-assets
- composer-install
2022-07-11 17:27:00 +00:00
- name: build-image-nginx
image: plugins/docker
settings:
pull_image: true
2022-07-11 19:46:53 +00:00
username:
2022-07-11 17:27:00 +00:00
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
2022-07-11 19:46:53 +00:00
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx
2022-07-11 17:27:00 +00:00
tag:
- ${DRONE_TAG}
Dockerfile: docker/nginx/Dockerfile
depends_on:
- build-assets
2023-02-17 12:26:14 +00:00
---
kind: pipeline
type: docker
name: build-base-image-php82
trigger:
event:
- cron
- push
cron:
- base-image-php82
steps:
- name: build-base-image
image: plugins/docker
settings:
username:
from_secret: docker_username_gitea
password:
from_secret: docker_password_gitea
registry: gitea.champs-libres.be/chill-project/chill-skeleton-basic
repo: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image
2023-03-30 16:14:30 +00:00
tag:
- php82
- latest
2023-02-17 12:26:14 +00:00
target: chill_base_php82
pull_image: true
---
kind: signature
2023-04-25 13:09:50 +00:00
hmac: 707a5ef589fb6320f9e9e1dec7d8d4d11b477ba09e3b2b08d6f31f98d6d3f5d0
2023-02-17 12:26:14 +00:00
...