service-ntfy/.drone.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

2023-01-15 22:31:19 +00:00
---
kind: pipeline
2023-01-15 22:49:45 +00:00
type: docker
2023-01-15 22:31:19 +00:00
name: default
2023-01-15 22:49:45 +00:00
#environment:
# DOCKER_REPO: glenux/service-ntfy
2023-01-15 22:46:18 +00:00
2023-01-15 22:31:19 +00:00
steps:
2023-01-15 22:49:45 +00:00
- name: publish:commit_sha
2023-01-15 22:31:19 +00:00
image: plugins/docker
2023-01-15 22:49:45 +00:00
# pull: never
volumes:
- name: cache
path: /stupid
2023-01-15 22:31:19 +00:00
settings:
2023-01-15 22:49:45 +00:00
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
# cache_from: glenux/service-ntfy
2023-01-15 22:46:18 +00:00
repo: glenux/service-ntfy
2023-01-15 22:49:45 +00:00
tags: "${DRONE_COMMIT_SHA:0:8}"
2023-01-15 22:46:18 +00:00
2023-01-15 22:49:45 +00:00
- name: publish:commit_branch
2023-01-15 22:46:18 +00:00
image: plugins/docker
2023-01-15 22:49:45 +00:00
volumes:
- name: cache
path: /stupid
2023-01-15 22:46:18 +00:00
settings:
2023-01-15 22:49:45 +00:00
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
# cache_from: glenux/service-ntfy
2023-01-15 22:46:18 +00:00
repo: glenux/service-ntfy
2023-01-15 22:49:45 +00:00
tags: "latest_${DRONE_BRANCH/\\//-}"
2023-01-15 22:46:18 +00:00
when:
branch:
2023-01-15 22:49:45 +00:00
- "master"
- "develop"
- "feature/*"
2023-01-15 22:31:19 +00:00
2023-01-15 22:49:45 +00:00
# - name: docker
# image: plugins/docker
# settings:
# username: "${DOCKERHUB_USERNAME}"
# password: "${DOCKERHUB_PASSWORD}"
# repo: glenux/service-ntfy
# tags: latest
# when:
# branch:
# - master
volumes:
- name: cache
temp: {}
2023-01-15 22:31:19 +00:00
#
2023-01-15 22:49:45 +00:00