Refactor .drone.yml a little

This commit is contained in:
Jesper Hess 2019-03-16 20:30:25 +01:00
parent e9f7390aac
commit 95971f9f7d
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F

View file

@ -11,15 +11,16 @@ steps:
- name: docker - name: docker
image: plugins/docker image: plugins/docker
repo: docker.data.coop/cryptohagen-website settings:
registry: docker.data.coop repo: docker.data.coop/cryptohagen-website
username: registry: docker.data.coop
from_secret: DOCKER_USERNAME username:
password: from_secret: DOCKER_USERNAME
from_secret: DOCKER_PASSWORD password:
tag: from_secret: DOCKER_PASSWORD
- "${DRONE_BUILD_NUMBER}" tags:
- "latest" - "${DRONE_BUILD_NUMBER}"
- "latest"
when: when:
branch: branch:
- master - master