ci: Add rules for build
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build encountered an error

This commit is contained in:
Glenn Y. Rolland 2023-01-15 23:46:18 +01:00
parent afbcb3dd74
commit 4623d8b7e9

View file

@ -1,14 +1,44 @@
---
kind: pipeline
ype: docker
name: default
environment:
DOCKERHUB_USERNAME:
from_secret: DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD:
from_secret: DOCKERHUB_PASSWORD
steps:
- name: docker
image: plugins/docker
settings:
username: kevinbacon
password: pa55word
repo: foo/bar
tags: latest
username: ${DOCKERHUB_USERNAME}
password: ${DOCKERHUB_PASSWORD}
repo: glenux/service-ntfy
tags: ${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}
- name: docker
image: plugins/docker
settings:
username: ${DOCKERHUB_USERNAME}
password: ${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
#