13 lines
307 B
YAML
13 lines
307 B
YAML
when:
|
|
- event: [push, manual, pull_request]
|
|
branch: [main]
|
|
|
|
steps:
|
|
docker:
|
|
image: docker:dind
|
|
commands:
|
|
- docker build -t "img_$CI_COMMIT_SHA:latest" -f "./Dockerfile" .
|
|
- docker image rm "img_$CI_COMMIT_SHA:latest"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|