23 lines
793 B
YAML
23 lines
793 B
YAML
|
|
workflow:
|
|
name: deploy-from-registry
|
|
steps:
|
|
publish-webapp:
|
|
image: docker:cli
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
REGISTRY_USERNAME:
|
|
from_secret: REGISTRY_USERNAME
|
|
REGISTRY_PASSWORD:
|
|
from_secret: REGISTRY_PASSWORD
|
|
DEPLOY_PATH:
|
|
from_secret: DEPLOY_PATH
|
|
commands:
|
|
- echo "$REGISTRY_PASSWORD" | docker login registry.binderlab.io --username "$REGISTRY_USERNAME" --password-stdin
|
|
- docker pull registry.binderlab.io/harbormaster-client:latest
|
|
- docker rm temp-harbormaster-client || true
|
|
- docker run --rm -v "$DEPLOY_PATH":/out registry.binderlab.io/harbormaster-client:latest sh -c "cp -r /app/. /out"
|
|
when:
|
|
event: manual
|