ci: sort steps
This commit is contained in:
parent
c92d967c15
commit
c302e6da9e
1 changed files with 15 additions and 15 deletions
30
.drone.yml
30
.drone.yml
|
@ -17,6 +17,21 @@ steps:
|
|||
- hadolint --version
|
||||
- hadolint Dockerfile
|
||||
|
||||
- name: docker_build_and_push_selfhosted
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: OCI-REGISTRY-USER
|
||||
password:
|
||||
from_secret: OCI-REGISTRY-PASS
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/apt-cacher-ng
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
- latest
|
||||
|
||||
- name: docker_build_and_push_dockerhub
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
@ -34,18 +49,3 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
- name: docker_build_and_push_selfhosted
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: OCI-REGISTRY-USER
|
||||
password:
|
||||
from_secret: OCI-REGISTRY-PASS
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/apt-cacher-ng
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
- latest
|
||||
|
|
Reference in a new issue