1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00
woodpecker/docs/build/publish.md
2015-09-29 17:16:20 -07:00

801 B

Publish

Drone uses the publish section of the .drone.yml to configure publish steps. Drone does not have any built-in publish or artifact capabilities. This functionality is outsourced to plugins. See the plugin marketplace for a list of official plugins.

An example configuration that builds a Docker image and publishes to the registry:

pubish:
  docker:
    username: kevinbacon
    password: pa55word
    email: kevin.bacon@mail.com
    repo: foo/bar
    tag: latest
    file: Dockerfile

Publish conditions

Use the when attribute to limit execution to a specific branch:

publish:
  docker:
    when:
      branch: master

  # you can also do simple matching

  bintray:
    when:
      branch: feature/*