fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Pedro Pérez 2025-05-29 23:41:02 +02:00
parent 26b6a2a322
commit 1f6a42a581

View File

@ -1,8 +1,6 @@
when: when:
event: - event: push
- push branch: main
branch:
- main
volumes: volumes:
- name: tmp - name: tmp
@ -11,28 +9,14 @@ volumes:
steps: steps:
- name: build - name: build
image: golang:1.24 image: golang:1.24
volumes:
- name: tmp
path: /shared
commands: commands:
- mkdir -p /shared/tmp - mkdir -p ./tmp
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /shared/tmp/learndrone main.go - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./tmp/learndrone ./main.go
- name: docker-build - name: docker-build
image: docker image: docker:26.0.0
volumes:
- name: tmp
path: /shared
- /var/run/docker.sock:/var/run/docker.sock
commands: commands:
- docker build -t learndrone:latest /shared - docker build -t learndrone:latest ./tmp
# - name: deploy
- name: deploy # image: docker:26.0.0
image: docker/compose:1.29.2 # commands:
volumes: # - docker-compose up -d
- /var/run/docker.sock:/var/run/docker.sock
- /containers/learndrone:/deploy
commands:
- cd /deploy
- docker-compose down
- docker-compose up -d