2020-12-28 22:36:25 +01:00
|
|
|
docker-build-master:
|
|
|
|
# Official docker image.
|
|
|
|
image: docker:latest
|
|
|
|
stage: build
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
2020-12-28 22:37:29 +01:00
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" gitlab.jonasled.de
|
2020-12-28 22:36:25 +01:00
|
|
|
script:
|
|
|
|
- sudo docker build -t gitlab.jonasled.de/jonasled/website .
|
|
|
|
- docker push "gitlab.jonasled.de/jonasled/website"
|
|
|
|
only:
|
|
|
|
- master
|