From 1b45ec7b48cc5ede01e52281ae770380da62cf71 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 18 Apr 2024 17:47:30 +0200 Subject: [PATCH] .gitlab-ci.yml --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3fe5b4d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +image: docker:dind + +services: + - docker:dind + +before_script: + - docker -v + +build image: + stage: build + script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + docker compose build libretranslate + - docker tag libretranslate $CI_REGISTRY/manalejandro/libretranslate-api/libretranslate-api:latest + - docker push $CI_REGISTRY/manalejandro/libretranslate-api/libretranslate-api:latest