16 lines
No EOL
509 B
YAML
16 lines
No EOL
509 B
YAML
steps:
|
|
publish-docker:
|
|
image: docker:cli
|
|
commands:
|
|
- version=$(cat version)
|
|
- tag="gitea.qpismont.fr/qpismont/portfolio:$version"
|
|
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
|
|
- docker build --rm --tag $tag .
|
|
- docker push $tag
|
|
- docker rmi $tag
|
|
when:
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
event: push
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
secrets: [docker_username, docker_password] |