From 9a8aaabcd42494487f1399f158e5b495c799899b Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Sun, 30 Jul 2023 06:57:33 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20push=20docker=20iamge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8cbc2c247..cf458ee75a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,19 @@ testCommit: - develop - /^feature\/.*$/ +dockerPush: + stage: .post + image: docker:latest + services: + - docker:dind + script: + - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . + - echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY + - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG + only: + - main + - beta + # This folder is cached between builds # https://docs.gitlab.com/ee/ci/yaml/index.html#cache cache: @@ -54,5 +67,3 @@ cache: - packages/*/node_modules/ - packages/backend/native-utils/node_modules/ - packages/backend/native-utils/.cargo/ - -