32 lines
640 B
YAML
32 lines
640 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build-and-push-to-gitea-registry
|
|
image: plugins/docker:20.16
|
|
settings:
|
|
registry: git.internet-master.cz
|
|
repo: git.internet-master.cz/fencl/martinfencl.eu
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- latest
|
|
username: fencl
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|
|
|
|
- name: call-portainer-webhook
|
|
image: curlimages/curl
|
|
environment:
|
|
PORTAINER_WEBHOOK:
|
|
from_secret: PORTAINER_WEBHOOK
|
|
commands:
|
|
- curl -fsS -X POST "$PORTAINER_WEBHOOK"
|