steps:
  clone:
    image: woodpeckerci/plugin-git
    settings:
      skip_verify: true

  build:
    image: woodpeckerci/plugin-docker-buildx
    settings:
      registry: gitea.perfectra1n.com
      repo: gitea.perfectra1n.com/perf3ct/readur
      dockerfile: Dockerfile
      context: .
      tags:
        - latest
        - ${CI_COMMIT_TAG}
      username:
        from_secret: GITEA_USERNAME
      password:
        from_secret: GITEA_PASSWORD

when:
  event:
    - tag
