Adjust pipeline.

This commit is contained in:
Ben Binder
2025-02-24 00:34:51 -06:00
parent dccc9a4fdc
commit 07579c0d0d

View File

@@ -1,16 +1,16 @@
steps:
build-and-push:
image: woodpeckerci/plugin-docker-buildx
settings:
username:
from_secret: REGISTRY_USERNAME
password:
from_secret: REGISTRY_PASSWORD
registry: registry.binderlab.io
repo: registry.binderlab.io/harbormaster
tags: latest
when:
event: manual
# build-and-push:
# image: woodpeckerci/plugin-docker-buildx
# settings:
# username:
# from_secret: REGISTRY_USERNAME
# password:
# from_secret: REGISTRY_PASSWORD
# registry: registry.binderlab.io
# repo: registry.binderlab.io/harbormaster
# tags: latest
# when:
# event: manual
deploy:
image: appleboy/drone-ssh
@@ -25,7 +25,7 @@ steps:
key:
from_secret: SSH_PRIVATE_KEY
script:
- echo "$REGISTRY_PASSWORD" | docker login registry.binderlab.io -u "$REGISTRY_USERNAME" --password-stdin
- echo "$REGISTRY_PASSWORD" | docker login registry.binderlab.io --username "$REGISTRY_USERNAME" --password-stdin
- docker pull registry.binderlab.io/harbormaster:latest
- docker stop harbormaster || true
- docker rm harbormaster || true