Build Docker image with correct tags
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Sam A. 2023-07-26 16:57:00 +02:00
parent 1321a1d0d3
commit d71d58f9c6
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 22 additions and 1 deletions

View File

@ -11,6 +11,7 @@ steps:
- dpkg -i hugo.deb
- hugo --destination _site/
# stable site
- name: docker
image: plugins/docker
settings:
@ -22,7 +23,7 @@ steps:
from_secret: DOCKER_PASSWORD
tags:
- "${DRONE_BUILD_NUMBER}"
- "hugo"
- "stable"
when:
branch:
- main
@ -30,6 +31,26 @@ steps:
exclude:
- pull_request
# staging site
- name: docker
image: plugins/docker
settings:
repo: docker.data.coop/data-coop-website
registry: docker.data.coop
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
tags:
- "${DRONE_BUILD_NUMBER}"
- "staging"
when:
branch:
- staging
event:
exclude:
- pull_request
- name: notify
image: plugins/matrix
settings: