Update CI files.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
workflow:
|
||||
name: build-and-push-to-registry
|
||||
steps:
|
||||
build-and-push-to-registry:
|
||||
image: woodpeckerci/plugin-docker-buildx:5.1
|
||||
settings:
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
registry: registry.binderlab.io
|
||||
repo: registry.binderlab.io/harbormaster-client
|
||||
tags: latest
|
||||
dockerfile: docker/Dockerfile
|
||||
context: .
|
||||
push: true
|
||||
when:
|
||||
event: manual
|
||||
@@ -1,22 +0,0 @@
|
||||
|
||||
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
|
||||
35
.woodpecker/.pipeline.yml
Normal file
35
.woodpecker/.pipeline.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
steps:
|
||||
build-and-push-to-registry:
|
||||
image: woodpeckerci/plugin-docker-buildx:5.1
|
||||
settings:
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
registry: registry.binderlab.io
|
||||
repo: registry.binderlab.io/harbormaster-client
|
||||
tags: latest
|
||||
dockerfile: docker/Dockerfile
|
||||
context: .
|
||||
push: true
|
||||
when:
|
||||
event: manual
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user