2024-05-13 07:56:32 +00:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
2024-05-16 08:51:38 +00:00
|
|
|
image: docker.io/library/ubuntu:noble
|
2024-05-13 07:56:32 +00:00
|
|
|
commands:
|
2024-05-16 09:32:41 +00:00
|
|
|
- mkdir /opt/my-mongo
|
2024-05-16 08:04:37 +00:00
|
|
|
- apt update
|
2024-05-16 08:38:20 +00:00
|
|
|
- apt install -y ca-certificates curl golang
|
2024-05-13 07:56:32 +00:00
|
|
|
- go get
|
2024-05-16 08:00:42 +00:00
|
|
|
- go build
|
2024-05-16 08:38:20 +00:00
|
|
|
- ./main
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|