cnc-speed-calculator/.drone.yml
sebclem b5e068cad4
All checks were successful
continuous-integration/drone/push Build is passing
Update '.drone.yml'
2022-01-14 14:42:24 +01:00

35 lines
789 B
YAML

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
dry_run: true
when:
environment:
exclude: production
- 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:
- main
environment:
- production