pipeline: build-docker: image: docker:18.06.1-ce volumes: - /var/run/docker.sock:/var/run/docker.sock commands: - chmod +x ./build-image.sh - ./build-image.sh when: event: [push]