18 lines
423 B
YAML
18 lines
423 B
YAML
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
|