118 lines
3.1 KiB
YAML
118 lines
3.1 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build-images
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
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/chillbasics/php-base
|
|
tag: latest
|
|
target: chill_base_php82
|
|
pull_image: true
|
|
cache_from:
|
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
|
- chill/base-image:latest
|
|
|
|
- name: composer-install
|
|
image: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
|
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
|
|
|
|
- name: build-assets
|
|
image: node:20
|
|
pull: always
|
|
commands:
|
|
- yarn install
|
|
- yarn list
|
|
- yarn run encore production
|
|
depends_on:
|
|
- composer-install
|
|
|
|
- name: build-image-php
|
|
image: plugins/docker
|
|
settings:
|
|
pull_image: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php
|
|
tag:
|
|
- ${DRONE_TAG}
|
|
cache_from:
|
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
|
- chill/base-image:latest
|
|
depends_on:
|
|
- build-assets
|
|
- composer-install
|
|
|
|
- name: build-image-nginx
|
|
image: plugins/docker
|
|
settings:
|
|
pull_image: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx
|
|
tag:
|
|
- ${DRONE_TAG}
|
|
Dockerfile: docker/nginx/Dockerfile
|
|
depends_on:
|
|
- build-assets
|
|
|
|
---
|
|
|
|
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
|
|
tag:
|
|
- php82
|
|
- latest
|
|
target: chill_base_php82
|
|
pull_image: true
|
|
|
|
---
|
|
kind: signature
|
|
hmac: 0bca4dec9822a08338f6f3b88badf771558aee19b41967837aa64853a1573cad
|
|
|
|
...
|