Update CI files.

This commit is contained in:
2025-12-17 23:45:23 -06:00
parent 278a9867e1
commit 024540c8b3
2 changed files with 39 additions and 40 deletions

View File

@@ -1,19 +1,18 @@
kind: pipeline workflow:
name: build-and-push-to-registry name: build-and-push-to-registry
steps:
steps: build-and-push-to-registry:
build-and-push-to-registry: image: woodpeckerci/plugin-docker-buildx:5.1
image: woodpeckerci/plugin-docker-buildx:5.1 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-client
repo: registry.binderlab.io/harbormaster-client tags: latest
tags: latest dockerfile: docker/Dockerfile
dockerfile: docker/Dockerfile context: .
context: . push: true
push: true when:
when: event: manual
event: manual

View File

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