2023-06-07 10:04:37 +00:00
|
|
|
steps:
|
2021-09-27 00:38:15 +00:00
|
|
|
image:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go test
|
|
|
|
|
|
|
|
image-pull:
|
|
|
|
image: golang
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- go test
|
|
|
|
|
|
|
|
single-command:
|
|
|
|
image: golang
|
|
|
|
commands: go test
|
|
|
|
|
2024-05-02 12:52:01 +00:00
|
|
|
entrypoint:
|
|
|
|
image: alpine
|
|
|
|
entrypoint: ['some_entry', '--some-flag']
|
|
|
|
|
|
|
|
singla-entrypoint:
|
|
|
|
image: alpine
|
|
|
|
entrypoint: some_entry
|
|
|
|
|
2021-09-27 00:38:15 +00:00
|
|
|
commands:
|
2023-11-09 18:31:08 +00:00
|
|
|
privileged: true
|
2021-09-27 00:38:15 +00:00
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go get
|
|
|
|
- go test
|
|
|
|
|
|
|
|
environment:
|
2021-12-04 15:44:18 +00:00
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
CGO: 0
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
commands:
|
|
|
|
- go test
|
|
|
|
|
|
|
|
environment-array:
|
2021-09-27 00:38:15 +00:00
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
- CGO=0
|
|
|
|
- GOOS=linux
|
|
|
|
- GOARCH=amd64
|
|
|
|
commands:
|
|
|
|
- go test
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
image: docker
|
|
|
|
commands:
|
2022-05-17 14:43:05 +00:00
|
|
|
- echo $DOCKER_USERNAME
|
|
|
|
- echo $DOCKER_PASSWORD
|
2021-09-27 00:38:15 +00:00
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- source: docker_prod_password
|
|
|
|
target: docker_password
|
|
|
|
|
|
|
|
group:
|
|
|
|
group: test
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go test
|
|
|
|
|
|
|
|
detached:
|
|
|
|
image: redis
|
|
|
|
detach: true
|
|
|
|
|
|
|
|
volume:
|
|
|
|
image: docker
|
|
|
|
commands:
|
|
|
|
- docker build --rm -t octocat/hello-world .
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|