From 95ed9bf158d2376dfc02ed8ceadce49d817eb42d Mon Sep 17 00:00:00 2001 From: mifi Date: Fri, 26 May 2023 12:19:35 -0400 Subject: [PATCH] Hehehehe --- .drone.yml | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1b168e3..6cf3033 100644 --- a/.drone.yml +++ b/.drone.yml @@ -209,7 +209,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 }}] Staging Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", "username":"DroneBot" } when: @@ -250,25 +250,9 @@ clone: steps: - name: Deploy Container - image: docker - privileged: true - environment: - 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 + image: plugins/webhook + settings: + urls: https://portainer.mifi.dev/api/stacks/webhooks/968d2244-2548-4f0b-8c18-bbc9bc35305d - name: Send Status Notifications image: plugins/webhook privileged: true @@ -278,7 +262,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 }}] Production Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", "username":"DroneBot" } when: @@ -286,19 +270,8 @@ steps: - success - 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: - - Test Pipeline + - Publish Pipeline trigger: event: