Build Docker image with correct tags
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
1321a1d0d3
commit
d71d58f9c6
23
.drone.yml
23
.drone.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue