Adjust drone pipeline.

This commit is contained in:
Ben Binder
2025-02-23 21:07:02 -06:00
parent 7767262ae4
commit 23a9eb767d

View File

@@ -8,18 +8,15 @@ trigger:
steps:
- name: build-and-push
image: docker:cli
environment:
REGISTRY: registry.binderlab.io
IMAGE_NAME: registry.binderlab.io/harbormaster
DOCKER_USERNAME:
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
password:
from_secret: DOCKER_PASSWORD
commands:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin $REGISTRY
- docker build -t $IMAGE_NAME:latest .
- docker push $IMAGE_NAME:latest
repo: registry.binderlab.io/harbormaster
registry: registry.binderlab.io
tags: latest
- name: deploy
image: alpine