The correct Drone syntax for referencing secrets is 'from_secret:', not 'from:'. Without this fix, Drone cannot read the registry credentials and the docker login step will fail with 401 Unauthorized. Co-authored-by: Junie <junie@jetbrains.com>
22 lines
414 B
YAML
22 lines
414 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build-and-push
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
steps:
|
|
- name: build-and-push
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
registry: gitea.jambotron.com
|
|
repo: gitea.jambotron.com/liosha84/htop-web
|
|
auto_tag: true
|
|
username:
|
|
from_secret: REGISTRY_USERNAME
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|