Adjust Dockerfile and pipeline.

This commit is contained in:
Ben Binder
2025-02-23 21:50:42 -06:00
parent f154cb5cdd
commit 1e5324823e
2 changed files with 10 additions and 2 deletions

View File

@@ -20,8 +20,16 @@ steps:
- name: deploy
image: alpine
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- echo "Deploying new version..."
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.binderlab.io
- docker pull registry.binderlab.io/harbormaster:latest
- docker stop harbormaster || true
- docker rm harbormaster || true