From ef0981b68f81d7f57ddc1c82edf4456725538f0a Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 22 Oct 2021 20:41:38 -0700 Subject: [PATCH] + Adding build stage for the docker image Kinda yolo'ing this one but hey lets see --- .gitignore | 1 + .gitlab-ci.yml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 42254ab..39677f8 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ aws/infra/*.backup aws/infra/.terraform/providers/registry.terraform.io/hashicorp/aws/3.63.0/linux_amd64/terraform-provider-aws_v3.63.0_x5 aws/infra/plan aws/infra/terraform.tfvars +aws/playbooks/hosts diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 633b5f0..c1760c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,10 @@ -image: rustlang/rust:nightly stages: - pages - build # Builds out the intended zip package package: + image: rustlang/rust:nightly stage: build script: - rustup default nightly-2021-09-18 @@ -20,6 +20,15 @@ package: 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 + pages: @@ -36,3 +45,8 @@ pages: artifacts: paths: - public/ +testing: + image: alpine + stage: build + script: + - echo $SOMEVAR