pipeline:
  publish-docker-latest:
    image: docker.io/plugins/kaniko
    settings:
      repo: git.astolfo.cool/natty/calckey
      tags: ${CI_COMMIT_TAG}
      dockerfile: Dockerfile
      registry: git.astolfo.cool
      username:
        # Secret 'docker_username' needs to be set in the CI settings
        from_secret: docker_username
      password:
        # Secret 'docker_password' needs to be set in the CI settings
        from_secret: docker_password

when:
  event: tag
  tag: v*