Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- build:
- image: golang
- environment:
- - GOPATH=/var/cache/drone
- - CGO_ENABLED=0
- - GOOS=linux
- - GOARCH=amd64
- - DB_DRIVER=postgres
- - DB_NAME=drone
- - DB_USER=postgres
- - DB_HOST=$POSTGRES_PORT_5432_TCP_ADDR
- - DB_PORT=5432
- - DB_PASSWORD=
- - DB_MODE=disable
- commands:
- - cp .netrc ~
- - chmod 600 .netrc
- - go get ./...
- - go test ./... -v
- - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o main .
- compose:
- database:
- image: postgres
- publish:
- docker:
- registry: docker.domain.com
- username: $$DOCKER_USERNAME
- password: $$DOCKER_PASSWORD
- email: $$DOCKER_EMAIL
- repo: 'services/bad-words'
- tag: $${BRANCH///-}
- force_tag: true
- insecure: false
- environment:
- - DOCKER_LAUNCH_DEBUG=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement