add woodpecker pipeline
This commit is contained in:
17
.woodpecker.yml
Normal file
17
.woodpecker.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:27
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "$REGISTRY_PASS" | docker login $REGISTRY_HOST -u "$REGISTRY_USER" --password-stdin
|
||||
- docker build -t $REGISTRY_HOST/nextcloud-custom:latest .
|
||||
- docker push $REGISTRY_HOST/nextcloud-custom:latest
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
Reference in New Issue
Block a user