name: Build Docker kind: pipeline type: docker steps: - name: Only build image image: plugins/docker settings: username: from_secret: docker_username password: from_secret: docker_password repo: harbor.sebclem.fr/sebclem/cnc-speed-calculator registry: harbor.sebclem.fr tags: latest when: branch: exclude: - master - name: Build and Push docker image: plugins/docker settings: username: from_secret: docker_username password: from_secret: docker_password repo: harbor.sebclem.fr/sebclem/cnc-speed-calculator registry: harbor.sebclem.fr tags: latest when: branch: - master trigger: event: - push - custom