Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. build:
  2. image: golang
  3. environment:
  4. - GOPATH=/var/cache/drone
  5. - CGO_ENABLED=0
  6. - GOOS=linux
  7. - GOARCH=amd64
  8. - DB_DRIVER=postgres
  9. - DB_NAME=drone
  10. - DB_USER=postgres
  11. - DB_HOST=$POSTGRES_PORT_5432_TCP_ADDR
  12. - DB_PORT=5432
  13. - DB_PASSWORD=
  14. - DB_MODE=disable
  15. commands:
  16. - cp .netrc ~
  17. - chmod 600 .netrc
  18. - go get ./...
  19. - go test ./... -v
  20. - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o main .
  21.  
  22. compose:
  23. database:
  24. image: postgres
  25.  
  26. publish:
  27. docker:
  28. registry: docker.domain.com
  29. username: $$DOCKER_USERNAME
  30. password: $$DOCKER_PASSWORD
  31. email: $$DOCKER_EMAIL
  32. repo: 'services/bad-words'
  33. tag: $${BRANCH///-}
  34. force_tag: true
  35. insecure: false
  36. environment:
  37. - DOCKER_LAUNCH_DEBUG=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement