service-ntfy/.drone.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

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