From 2616e5bbbbac347b42a59753c609967c792e3bd6 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 2 Jan 2022 17:21:36 -0800 Subject: [PATCH] + Building container via pipeline --- .gitlab-ci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7daafd4..af9fe5d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - build - pages # Literally both of these fail 99% of the time so I'm forgoing them completely @@ -20,15 +21,17 @@ stages: # artifacts: # paths: # - build/ -# -## Build the updated docker -#build-docker-image: -# stage: build -# image: docker:stable -# script: -# - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin -# - docker build -t registry.gitlab.com/shockrah/clippable . -# - docker push registry.gitlab.com/shockrah/clippable + +# Build the updated docker +build-docker-image: + stage: build + image: docker:stable + services: + - docker:dind + script: + - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin + - docker build -t registry.gitlab.com/shockrah/clippable . + - docker push registry.gitlab.com/shockrah/clippable