service-ntfy/.drone.yml

47 lines
1,002 B
YAML
Raw Normal View History

2023-01-15 22:31:19 +00:00
---
kind: pipeline
2023-01-15 22:57:47 +00:00
type: docker
2023-01-15 22:31:19 +00:00
name: default
2023-01-15 23:20:19 +00:00
#environment:
# DOCKER_REPO: glenux/service-ntfy
2023-01-15 23:13:23 +00:00
2023-01-15 22:31:19 +00:00
steps:
2023-01-15 23:23:31 +00:00
- name: publish:commit_sha
2023-01-15 22:31:19 +00:00
image: plugins/docker
2023-01-15 23:04:47 +00:00
pull: never
2023-01-15 22:31:19 +00:00
settings:
2023-01-15 23:20:19 +00:00
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
2023-01-15 22:46:18 +00:00
repo: glenux/service-ntfy
2023-01-15 23:09:28 +00:00
tags: "${DRONE_COMMIT_SHA:0:8}"
2023-01-15 22:46:18 +00:00
2023-01-15 23:23:31 +00:00
- name: publish:commit_branch
2023-01-15 23:20:19 +00:00
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
repo: glenux/service-ntfy
2023-01-15 23:26:06 +00:00
tags: "latest_${DRONE_BRANCH/\\//-}"
2023-01-15 23:20:19 +00:00
when:
branch:
2023-01-15 23:22:43 +00:00
- "master"
- "develop"
- "feature/*"
2023-01-15 22:31:19 +00:00
2023-01-15 23:04:47 +00:00
# - name: docker
# image: plugins/docker
# settings:
# username: "${DOCKERHUB_USERNAME}"
# password: "${DOCKERHUB_PASSWORD}"
# repo: glenux/service-ntfy
# tags: latest
# when:
# branch:
2023-01-15 23:09:59 +00:00
# - master
2023-01-15 22:31:19 +00:00
#