changed the drone config a bit
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
2023-02-15 21:23:03 +01:00
parent 660301c71e
commit 49c4ed1a9b
+5 -12
View File
@@ -7,12 +7,6 @@ steps:
commands:
- go test -v ./...
- go build -v -o ./bin/drone-example .
---
kind: pipeline
name: deploy
steps:
- name: deploy
image: docker:cli
volumes:
@@ -22,14 +16,13 @@ steps:
- docker build -t drone-example .
- docker rm -f drone-example
- docker run -d -p 127.241.212.77:1098:5000 --restart always --name drone-example drone-example
when:
event:
- promote
target:
- production
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
trigger:
event:
- promote
target:
- production