Add new file

This commit is contained in:
2023-11-20 22:36:06 +00:00
parent 5f4e990b36
commit eb8b32c111

11
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,11 @@
build-docker:
image: docker:latest
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t illegitimate:$CI_COMMIT_BRANCH .
- docker push illegitimate:$CI_COMMIT_BRANCH
rules:
- if: $CI_COMMIT_BRANCH === "main"
exists:
- Dockerfile