kind: pipeline type: docker name: default steps: - name: build and push image: docker:dind volumes: - name: dockersock path: /var/run commands: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - make docker_release when: branch: - master services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run trigger: event: - push