generate executable and build docker

This commit is contained in:
Pedro Pérez 2025-05-29 23:33:50 +02:00
parent e9b13d317a
commit 797404f853

View File

@ -5,13 +5,19 @@ when:
steps:
- name: build
image: golang:1.24
volumes:
- name: tmp
path: /shared
commands:
- mkdir -p tmp
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./tmp/learndrone ./main.go
- 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
volumes:
- name: tmp
path: /shared
commands:
- docker build -t learndrone:latest .
- docker build -t learndrone:latest /shared/tmp
# - name: deploy
# image: docker:26.0.0
# commands: