15 lines
No EOL
406 B
YAML
15 lines
No EOL
406 B
YAML
when:
|
|
- event: [tag]
|
|
|
|
steps:
|
|
publish-docker:
|
|
image: docker:26-cli
|
|
commands:
|
|
- tag="tintounn/trepa:$${CI_COMMIT_TAG}"
|
|
- docker login -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
|
|
- docker build --rm --tag $tag .
|
|
- docker push $tag
|
|
- docker rmi $tag
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
secrets: [docker_username, docker_password] |