No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 1005B

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. pipeline:
  3. docker-build:
  4. image: docker
  5. commands:
  6. - apk add -U git
  7. - /bin/sh scripts/dockerBuild.sh
  8. volumes:
  9. - /var/run/docker.sock:/var/run/docker.sock
  10. when:
  11. event: push
  12. docker-push:
  13. image: docker
  14. commands:
  15. - apk add -U git
  16. - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD r.daemons.it
  17. - /bin/sh scripts/dockerPush.sh
  18. volumes:
  19. - /var/run/docker.sock:/var/run/docker.sock
  20. when:
  21. event: push
  22. secrets: [docker_user, docker_password]
  23. notify-good:
  24. image: registry.daemons.it/drone-xmpp
  25. secrets: [xmpp_user, xmpp_password, xmpp_room]
  26. message: Beep, boop, soy un bot. El job de dockerfiles ha ido bien.
  27. when:
  28. status: [success]
  29. event: push
  30. notify-bad:
  31. image: registry.daemons.it/drone-xmpp
  32. message: "Beep, boop, soy un bot. El job ha ido mal: {build_link}"
  33. secrets: [xmpp_user, xmpp_password, xmpp_room]
  34. when:
  35. status: [failure]
  36. event: push
  37. branch: master