Update .gitlab-ci.yml file

This commit is contained in:
Julian
2022-01-23 22:55:57 +00:00
parent 0e1b585db6
commit 0784cf70a3

21
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,21 @@
image: docker:stable
services:
- docker:dind
before_script:
- docker info
build:
only:
- main
before_script:
- docker login registry.git.rismer.de -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD}
script:
- docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest .
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest
after_script:
- docker logout ${CI_REGISTRY}
stage: build
tags:
- docker