Hehehehe
This commit is contained in:
39
.drone.yml
39
.drone.yml
@@ -209,7 +209,7 @@ steps:
|
|||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
"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 }}] Staging Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
"username":"DroneBot"
|
"username":"DroneBot"
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
@@ -250,25 +250,9 @@ clone:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy Container
|
- name: Deploy Container
|
||||||
image: docker
|
image: plugins/webhook
|
||||||
privileged: true
|
settings:
|
||||||
environment:
|
urls: https://portainer.mifi.dev/api/stacks/webhooks/968d2244-2548-4f0b-8c18-bbc9bc35305d
|
||||||
CONTAINER_PREFIX: staging
|
|
||||||
HOST: area51.mifi.dev
|
|
||||||
ROUTE_PREFIX: /auth
|
|
||||||
PORT: 9001
|
|
||||||
commands:
|
|
||||||
- docker compose -f docker-compose.production-build.yml pull
|
|
||||||
- docker compose -f docker-compose.production-build.yml build --no-cache
|
|
||||||
- docker compose -f docker-compose.production-build.yml rm --stop
|
|
||||||
- docker compose -f docker-compose.production-build.yml up --wait
|
|
||||||
volumes:
|
|
||||||
- name: env-secrets
|
|
||||||
path: /drone/auth/production.env
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- name: dockerconfig
|
|
||||||
path: /drone/auth/.docker/config.json
|
|
||||||
- name: Send Status Notifications
|
- name: Send Status Notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
privileged: true
|
privileged: true
|
||||||
@@ -278,7 +262,7 @@ steps:
|
|||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
"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 }}] Production Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
"username":"DroneBot"
|
"username":"DroneBot"
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
@@ -286,19 +270,8 @@ steps:
|
|||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockerconfig
|
|
||||||
host:
|
|
||||||
path: /volume1/docker/dockerconfig.json
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- name: env-secrets
|
|
||||||
host:
|
|
||||||
path: /volume1/docker/beethoven/labs-auth/staging.env
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Test Pipeline
|
- Publish Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
|||||||
Reference in New Issue
Block a user