Serves files to the public, static content host, etc.
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 884B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. kind: pipeline
  2. name: default
  3. workspace:
  4. base: /go
  5. path: src/deadbeef.codes/steven/deadbeef.codes-publicfileserver
  6. steps:
  7. - name: build
  8. image: golang
  9. pull: always
  10. environment:
  11. GOOS: linux
  12. GOARCH: amd64
  13. CGO_ENABLED: 0
  14. commands:
  15. - go version
  16. - go get
  17. - go build -a -ldflags '-w'
  18. - name: publish
  19. image: plugins/docker
  20. settings:
  21. repo: registry.deadbeef.codes/deadbeef.codes-publicfileserver
  22. - name: production
  23. image: appleboy/drone-ssh
  24. settings:
  25. host: 10.69.71.105
  26. port: 22
  27. username:
  28. from_secret: sshusername
  29. password:
  30. from_secret: sshpassword
  31. script:
  32. - echo Informing spud to pull latest container and infrastructure...
  33. - cd deadbeef.codes-infrastructure/spud
  34. - git pull
  35. - docker-compose pull >/dev/null
  36. - echo Restarting updated services...
  37. - ./start.sh >/dev/null
  38. - echo Done.