ci: use quotes for strings
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2023-01-15 23:49:45 +01:00
parent 4623d8b7e9
commit de118433b3

View file

@ -1,44 +1,59 @@
--- ---
kind: pipeline kind: pipeline
ype: docker type: docker
name: default name: default
environment: #environment:
DOCKERHUB_USERNAME: # DOCKER_REPO: glenux/service-ntfy
from_secret: DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD:
from_secret: DOCKERHUB_PASSWORD
steps: steps:
- name: docker - name: publish:commit_sha
image: plugins/docker image: plugins/docker
# pull: never
volumes:
- name: cache
path: /stupid
settings: settings:
username: ${DOCKERHUB_USERNAME} username:
password: ${DOCKERHUB_PASSWORD} from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
# cache_from: glenux/service-ntfy
repo: glenux/service-ntfy repo: glenux/service-ntfy
tags: ${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8} tags: "${DRONE_COMMIT_SHA:0:8}"
- name: docker - name: publish:commit_branch
image: plugins/docker image: plugins/docker
volumes:
- name: cache
path: /stupid
settings: settings:
username: ${DOCKERHUB_USERNAME} username:
password: ${DOCKERHUB_PASSWORD} from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
# cache_from: glenux/service-ntfy
repo: glenux/service-ntfy repo: glenux/service-ntfy
tags: latest_${DRONE_BRANCH} tags: "latest_${DRONE_BRANCH/\\//-}"
when: when:
branch: branch:
- master - "master"
- develop - "develop"
- feature/* - "feature/*"
- name: docker # - name: docker
image: plugins/docker # image: plugins/docker
settings: # settings:
username: ${DOCKERHUB_USERNAME} # username: "${DOCKERHUB_USERNAME}"
password: ${DOCKERHUB_PASSWORD} # password: "${DOCKERHUB_PASSWORD}"
repo: glenux/service-ntfy # repo: glenux/service-ntfy
tags: latest # tags: latest
when: # when:
branch: # branch:
- master # - master
volumes:
- name: cache
temp: {}
# #