kind: pipeline
type: docker
name: Build & publish docker image

steps:
- name: publish-image
  pull: always
  image: plugins/kaniko:1.7.1-kaniko1.9.1
  settings:
    tags: ${DRONE_TAG##v}
    registry: code.groupe-genes.fr
    repo: code.groupe-genes.fr/labeds/cours_nunez
    username:
      from_secret: docker_username
    password:
      from_secret: docker_password
  when:
    event: 
      - tag

