docker-composer/.drone.yml

236 lines
3.5 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: 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
CUSTOM_TAGS: latest
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: signature
hmac: 44c839f467ea963442ae6dfa09469525e9b4b9aa91e1cebb2bb33f856defa837
...