diff --git a/.drone.yml b/.drone.yml index 1c6cdb1..9111abe 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,7 +38,7 @@ steps: exclude: - pull_request - - name: docker_build_and_push + - name: docker_build_and_push_dockerhub image: plugins/docker settings: username: @@ -54,3 +54,18 @@ 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