Build Docker image with correct tags

This commit is contained in:
Sam A. 2023-07-26 16:57:00 +02:00
parent 1321a1d0d3
commit d71d58f9c6
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

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: