diff --git a/.woodpecker.yml b/.woodpecker.yml index a427c43..6cf7acd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,22 +1,33 @@ +# when: +# - event: push +# branch: main + +# steps: +# - name: build +# image: golang:1.24 +# commands: +# - mkdir -p ./tmp +# - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./tmp/learndrone ./main.go +# - name: docker-build +# image: docker:23 +# commands: +# - docker build -t learndrone:latest ./tmp +# # - name: deploy +# # image: docker:26.0.0 +# # commands: +# # - docker-compose up -d + when: - event: push branch: main -volumes: - - name: tmp - temp: {} - steps: - - name: build - image: golang:1.24 - commands: - - mkdir -p ./tmp - - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./tmp/learndrone ./main.go - - name: docker-build - image: docker:26.0.0 - commands: - - docker build -t learndrone:latest ./tmp - # - name: deploy - # image: docker:26.0.0 - # commands: - # - docker-compose up -d \ No newline at end of file + build: + image: golang:1.24 + environment: + CGO_ENABLED=0 + GOOS=linux + GOARCH=amd64 + commands: + - go get + - go build