+10
-7
@@ -4,12 +4,15 @@ when:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: debian
|
||||
image: golang:1.24
|
||||
commands:
|
||||
- echo "This is the build step"
|
||||
- echo "binary-data-123-456" > executable
|
||||
- name: a-test-step
|
||||
image: golang:1.16
|
||||
- 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:
|
||||
- echo "Testing ..."
|
||||
- ./executable
|
||||
- docker build -t learndrone:latest .
|
||||
# - name: deploy
|
||||
# image: docker:26.0.0
|
||||
# commands:
|
||||
# - docker-compose up -d
|
||||
Reference in New Issue
Block a user