service-ntfy/.drone.yml
2023-01-16 00:20:19 +01:00

46 lines
968 B
YAML

---
kind: pipeline
type: docker
name: default
#environment:
# DOCKER_REPO: glenux/service-ntfy
steps:
- name: docker
image: plugins/docker
pull: never
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
repo: glenux/service-ntfy
tags: "${DRONE_COMMIT_SHA:0:8}"
- name: docker
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
repo: glenux/service-ntfy
tags: "latest_${DRONE_BRANCH//\//}"
when:
branch:
- master
- develop
- feature/*
# - name: docker
# image: plugins/docker
# settings:
# username: "${DOCKERHUB_USERNAME}"
# password: "${DOCKERHUB_PASSWORD}"
# repo: glenux/service-ntfy
# tags: latest
# when:
# branch:
# - master
#