homepage/.drone.yml
2023-01-07 11:10:54 +01:00

58 lines
No EOL
1.1 KiB
YAML

kind: pipeline
name: homepage
steps:
- name: build and publish
image: plugins/docker
settings:
registry: codeberg.org
username:
from_secret: registry_username
password:
from_secret: registry_password
repo: codeberg.org/angestoepselt/homepage
build_args:
- SITE=angestoepselt
tags: ${DRONE_BRANCH}
- name: deploy stage build
image: plugins/webhook
settings:
urls:
from_secret: portainer_stage_url
when:
branch:
- captcha
- name: deploy live build
image: plugins/webhook
settings:
urls:
from_secret: portainer_main_url
when:
branch:
- main
- name: send notification
image: plugins/webhook
settings:
urls:
from_secret: DRONE_WEBHOOK_ENDPOINT
username: drone
password:
from_secret: DRONE_WEBHOOK_SECRET
content_type: application/json
template: |
{
"branch": "{{ build.branch }}",
"author": "{{ build.author }}",
"event": "{{ build.event }}",
"status": "{{ build.status }}",
"owner": "{{ repo.owner }}",
"repo": "{{ repo.name }}"
}
trigger:
branch:
- main
- captcha