diff --git a/.woodpecker.yml b/.woodpecker.yml index cbff1fe..89c2d65 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file