got it to build
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

pull/2/head
Adam Veldhousen 3 years ago
parent e92c2b6d02
commit b3b6c3b309
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -15,25 +15,8 @@ steps:
commands:
- apk add make go tar curl git
- make build publish
when:
branch:
- master
steps:
- name: docker build
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- apk add make go tar curl git
- make build
when:
branch:
exclude:
- master
volumes:
- name: dockersock
host:

@ -14,6 +14,11 @@ build:
publish: clean build
docker push vdhsn/blog:${VERSION}
if [ '$(VERSION)' = 'master' ]; then
@echo 'master build detected'
docker tag vdhsn/blog:${VERSION} vdhsn/blog:latest
docker push vdhsn/blog:latest
fi
test-publish: build
docker run -it -p 8080:80 vdhsn/blog:${VERSION}

Loading…
Cancel
Save