This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -17,11 +17,6 @@ steps:
|
||||
from_secret: gitea_package_token
|
||||
secrets: [gitea_package_token]
|
||||
|
||||
- name: Deploy Container
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: ttps://portainer.mifi.dev/api/stacks/webhooks/f7e63722-cafd-4970-8729-9f1936c6a070
|
||||
|
||||
- name: Send Deploy Status Notification
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
@@ -30,7 +25,7 @@ steps:
|
||||
template: |
|
||||
{
|
||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||
"text": "[{{ repo.name }} - Build # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||
"text": "[{{ repo.name }} - Build # {{ build.number }}] Publish {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
when:
|
||||
@@ -38,14 +33,6 @@ steps:
|
||||
- success
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- name: dockerconfig
|
||||
host:
|
||||
path: /volume1/docker/dockerconfig.json
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
@@ -67,7 +54,7 @@ steps:
|
||||
- name: Deploy to Production
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://portainer.mail.mifi.holdings/api/stacks/webhooks/WEBHOOK_ID_HERE
|
||||
urls: https://portainer.mail.mifi.holdings/api/stacks/webhooks/f7e63722-cafd-4970-8729-9f1936c6a070
|
||||
|
||||
- name: Send Production Deploy Status
|
||||
image: plugins/webhook
|
||||
|
||||
Reference in New Issue
Block a user