fix woodpecker
This commit is contained in:
parent
797404f853
commit
f6a6be742c
@ -12,13 +12,18 @@ steps:
|
||||
- mkdir -p /shared/tmp
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /shared/tmp/learndrone main.go
|
||||
- name: docker-build
|
||||
image: docker:26.0.0
|
||||
image: docker
|
||||
volumes:
|
||||
- name: tmp
|
||||
path: /shared
|
||||
commands:
|
||||
- docker build -t learndrone:latest /shared/tmp
|
||||
# - name: deploy
|
||||
# image: docker:26.0.0
|
||||
# commands:
|
||||
# - docker-compose up -d
|
||||
- name: deploy
|
||||
image: docker/compose
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /containers/learndrone:/deploy
|
||||
commands:
|
||||
- cd /deploy
|
||||
- docker-compose down
|
||||
- docker-compose up -d
|
||||
Loading…
Reference in New Issue
Block a user