Initialize project with basic endpoints.

This commit is contained in:
Ben Binder
2025-02-23 20:00:29 -06:00
commit e68b88bcb7
5 changed files with 171 additions and 0 deletions

27
.drone.yml Normal file
View File

@@ -0,0 +1,27 @@
kind: pipeline
type: docker
name: deploy-harbormaster
trigger:
event:
- manual
steps:
- name: build-and-push
image: docker:latest
environment:
REGISTRY: registry.binderlab.io:8000
IMAGE_NAME: registry.binderlab.io:8000/harbormaster
commands:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" $REGISTRY
- docker build -t $IMAGE_NAME:latest .
- docker push $IMAGE_NAME:latest
- name: deploy
image: alpine
commands:
- echo "Deploying new version..."
- docker pull registry.binderlab.io/harbormaster:latest
- docker stop harbormaster || true
- docker rm harbormaster || true
- docker run -d --name harbormaster -p 8080:8080 registry.binderlab.io/harbormaster:latest