38 lines
679 B
YAML
38 lines
679 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: publish
|
|
image: plugins/docker
|
|
settings:
|
|
auto_tag: true
|
|
registry:
|
|
from_secret: docker_registry
|
|
repo:
|
|
from_secret: docker_repo
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
branch: master
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
|
|
# Specify docker:dind as a service
|
|
services:
|
|
- name: docker
|
|
image: docker:dind
|
|
privileged: true
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
temp: {}
|