platform: 'linux/amd64'
branches: 'main'

pipeline:
  release:
    image: 'plugins/docker'
    settings:
      repo: 'chewingbever/site'
      tag: 
        - 'latest'
    secrets:
      - 'docker_username'
      - 'docker_password'

  deploy:
    image: 'curlimages/curl'
    secrets:
      - 'webhook'
    commands:
      - curl -XPOST --fail -s "$WEBHOOK"