2023-08-10 20:19:11 +02:00
|
|
|
steps:
|
|
|
|
publish-docker:
|
2023-08-10 21:08:44 +02:00
|
|
|
image: docker:cli
|
|
|
|
commands:
|
2023-08-10 21:19:40 +02:00
|
|
|
- version=$(cat version)
|
2023-08-10 21:09:44 +02:00
|
|
|
- docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}"
|
2023-08-10 21:20:21 +02:00
|
|
|
- docker build . --tag gitea.qpismont.fr/qpismont/portfolio:$version
|
|
|
|
- docker push gitea.qpismont.fr/qpismont/portfolio:$version
|
2023-08-10 20:19:11 +02:00
|
|
|
when:
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
2023-08-10 21:08:44 +02:00
|
|
|
event: push
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
secrets: [docker_username, docker_password]
|