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