add CI pipeline configuration
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- deployment
|
||||||
|
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"
|
||||||
Reference in New Issue
Block a user