ci: sort steps

This commit is contained in:
Michael Grote 2023-04-20 13:43:26 +02:00
parent c92d967c15
commit c302e6da9e

View file

@ -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