docker-twitchlite/.drone.yml
Magnus Walbeck 0400cc9ab7
All checks were successful
continuous-integration/drone/push Build is passing
Remove notify step
2023-05-23 22:15:07 +02:00

101 lines
1.7 KiB
YAML

---
kind: pipeline
type: docker
name: lint
steps:
- name: Lint Dockerfile
image: hadolint/hadolint:latest-debian
pull: if-not-exists
commands:
- hadolint --version
- hadolint */Dockerfile
when:
status:
- failure
- success
- name: Lint entrypoint scripts
image: koalaman/shellcheck-alpine
pull: if-not-exists
commands:
- shellcheck --version
- shellcheck */entrypoint.sh
when:
status:
- failure
- success
trigger:
event:
- pull_request
- push
ref:
exclude:
- refs/heads/renovate/*
---
kind: pipeline
type: docker
name: helix test
steps:
- name: docker
image: plugins/docker
pull: if-not-exists
settings:
dockerfile: helix/Dockerfile
context: helix/
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password_ro
repo: mwalbeck/twitchlite
dry_run: true
trigger:
event:
- pull_request
depends_on:
- lint
---
kind: pipeline
type: docker
name: helix build and publish
steps:
- name: determine tags
image: mwalbeck/determine-docker-tags
pull: if-not-exists
environment:
CUSTOM_TAGS: latest,helix
- name: docker
image: plugins/docker
pull: if-not-exists
settings:
dockerfile: helix/Dockerfile
context: helix/
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: mwalbeck/twitchlite
trigger:
branch:
- master
event:
- push
depends_on:
- lint
---
kind: signature
hmac: 871b56fbed6c3caff20bac9201327fd51af11ab41de39d70d8bc6933de429738
...