Adjust pipeline.
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
steps:
|
steps:
|
||||||
build-and-push:
|
# build-and-push:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
# image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
# settings:
|
||||||
username:
|
# username:
|
||||||
from_secret: REGISTRY_USERNAME
|
# from_secret: REGISTRY_USERNAME
|
||||||
password:
|
# password:
|
||||||
from_secret: REGISTRY_PASSWORD
|
# from_secret: REGISTRY_PASSWORD
|
||||||
registry: registry.binderlab.io
|
# registry: registry.binderlab.io
|
||||||
repo: registry.binderlab.io/harbormaster
|
# repo: registry.binderlab.io/harbormaster
|
||||||
tags: latest
|
# tags: latest
|
||||||
when:
|
# when:
|
||||||
event: manual
|
# event: manual
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@@ -25,7 +25,7 @@ steps:
|
|||||||
key:
|
key:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
script:
|
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 pull registry.binderlab.io/harbormaster:latest
|
||||||
- docker stop harbormaster || true
|
- docker stop harbormaster || true
|
||||||
- docker rm harbormaster || true
|
- docker rm harbormaster || true
|
||||||
|
|||||||
Reference in New Issue
Block a user