Update CI files.
This commit is contained in:
19
.woodpecker/.build-and-push-to-registry.yml
Normal file
19
.woodpecker/.build-and-push-to-registry.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
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: push
|
||||
branch:
|
||||
- main
|
||||
not:
|
||||
event: manual
|
||||
@@ -1,25 +1,5 @@
|
||||
steps:
|
||||
build-and-push:
|
||||
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: push
|
||||
branch:
|
||||
- main
|
||||
not:
|
||||
event: manual
|
||||
|
||||
pull-container:
|
||||
publish-webapp:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user