Compare commits
1 Commits
57e9bf12ca
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e7ad846538 |
+11
-5
@@ -3,8 +3,8 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch: [ main ]
|
branch: [main]
|
||||||
event: [ push ]
|
event: [push]
|
||||||
|
|
||||||
# Kill the default clone entirely
|
# Kill the default clone entirely
|
||||||
clone:
|
clone:
|
||||||
@@ -14,7 +14,7 @@ steps:
|
|||||||
- name: manual clone
|
- name: manual clone
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
environment:
|
||||||
GIT_ASKPASS: 'echo' # prevent interactive prompts
|
GIT_ASKPASS: "echo" # prevent interactive prompts
|
||||||
commands:
|
commands:
|
||||||
- git clone --depth=50 "https://fencl:5ece5d37cd3a9988a78983b10cede284e25717f8@git.internet-master.cz/fencl/davisfe.cz.git" .
|
- git clone --depth=50 "https://fencl:5ece5d37cd3a9988a78983b10cede284e25717f8@git.internet-master.cz/fencl/davisfe.cz.git" .
|
||||||
# - git fetch origin +refs/heads/deployment:refs/remotes/origin/deployment
|
# - git fetch origin +refs/heads/deployment:refs/remotes/origin/deployment
|
||||||
@@ -36,6 +36,12 @@ steps:
|
|||||||
|
|
||||||
- name: call-portainer-webhook
|
- name: call-portainer-webhook
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
|
environment:
|
||||||
|
PORTAINER_USER:
|
||||||
|
from_secret: PORTAINER_USER
|
||||||
|
PORTAINER_PASSWORD:
|
||||||
|
from_secret: PORTAINER_PASSWORD
|
||||||
|
PORTAINER_WEBHOOK:
|
||||||
|
from_secret: PORTAINER_WEBHOOK
|
||||||
commands:
|
commands:
|
||||||
- curl -u 'howard:Papadopolus0' -X POST 'https://portainer.martinfencl.eu/api/stacks/webhooks/72df3f63-b271-4aef-9325-772a2ccbaeca'
|
- curl -fsS -u "$PORTAINER_USER:$PORTAINER_PASSWORD" -X POST "$PORTAINER_WEBHOOK"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user