website/.gitlab-ci.yml

13 lines
386 B
YAML
Raw Normal View History

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:
2020-12-31 12:00:36 +01:00
- sudo docker build -t gitlab.jonasled.de/jonasled/website:latest .
- docker push "gitlab.jonasled.de/jonasled/website:latest"
2020-12-28 22:36:25 +01:00
only:
- master