docker-composer/.drone.yml
Magnus Walbeck c4744c094c
All checks were successful
continuous-integration/drone/push Build is passing
Add php 8.4
2024-11-23 15:08:56 +01:00

303 lines
4.6 KiB
YAML

---
kind: pipeline
type: docker
name: lint
platform:
os: linux
arch: amd64
steps:
- name: Lint Dockerfiles
pull: if-not-exists
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint */Dockerfile
trigger:
event:
- pull_request
- push
ref:
exclude:
- refs/heads/renovate/*
---
kind: pipeline
type: docker
name: test_2_php8.1
platform:
os: linux
arch: amd64
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.1/Dockerfile
dry_run: true
password:
from_secret: dockerhub_password_ro
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
event:
- pull_request
depends_on:
- lint
---
kind: pipeline
type: docker
name: test_2_php8.2
platform:
os: linux
arch: amd64
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.2/Dockerfile
dry_run: true
password:
from_secret: dockerhub_password_ro
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
event:
- pull_request
depends_on:
- lint
---
kind: pipeline
type: docker
name: test_2_php8.3
platform:
os: linux
arch: amd64
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.3/Dockerfile
dry_run: true
password:
from_secret: dockerhub_password_ro
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
event:
- pull_request
depends_on:
- lint
---
kind: pipeline
type: docker
name: test_2_php8.4
platform:
os: linux
arch: amd64
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.4/Dockerfile
dry_run: true
password:
from_secret: dockerhub_password_ro
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
event:
- pull_request
depends_on:
- lint
---
kind: pipeline
type: docker
name: release_2_php8.1
platform:
os: linux
arch: amd64
steps:
- name: determine tags
pull: if-not-exists
image: mwalbeck/determine-docker-tags
environment:
APP_ENV: php8.1
APP_NAME: COMPOSER
DOCKERFILE_PATH: 2-php8.1/Dockerfile
VERSION_TYPE: docker_env
- name: build and publish
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.1/Dockerfile
password:
from_secret: dockerhub_password
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
branch:
- master
event:
- push
depends_on:
- lint
---
kind: pipeline
type: docker
name: release_2_php8.2
platform:
os: linux
arch: amd64
steps:
- name: determine tags
pull: if-not-exists
image: mwalbeck/determine-docker-tags
environment:
APP_ENV: php8.2
APP_NAME: COMPOSER
DOCKERFILE_PATH: 2-php8.2/Dockerfile
VERSION_TYPE: docker_env
- name: build and publish
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.2/Dockerfile
password:
from_secret: dockerhub_password
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
branch:
- master
event:
- push
depends_on:
- lint
---
kind: pipeline
type: docker
name: release_2_php8.3
platform:
os: linux
arch: amd64
steps:
- name: determine tags
pull: if-not-exists
image: mwalbeck/determine-docker-tags
environment:
APP_ENV: php8.3
APP_NAME: COMPOSER
DOCKERFILE_PATH: 2-php8.3/Dockerfile
VERSION_TYPE: docker_env
- name: build and publish
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.3/Dockerfile
password:
from_secret: dockerhub_password
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
branch:
- master
event:
- push
depends_on:
- lint
---
kind: pipeline
type: docker
name: release_2_php8.4
platform:
os: linux
arch: amd64
steps:
- name: determine tags
pull: if-not-exists
image: mwalbeck/determine-docker-tags
environment:
APP_ENV: php8.4
APP_NAME: COMPOSER
CUSTOM_TAGS: latest
DOCKERFILE_PATH: 2-php8.4/Dockerfile
VERSION_TYPE: docker_env
- name: build and publish
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: 2-php8.4/Dockerfile
password:
from_secret: dockerhub_password
repo: mwalbeck/composer
username:
from_secret: dockerhub_username
trigger:
branch:
- master
event:
- push
depends_on:
- lint
---
kind: signature
hmac: fcc372edef5a413432143b6d9eb88cd8424d73d901013787350f6011ce9fde31
...