From 4192f455b6d4010d6db255ec4008cfffc471fc72 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 5 Dec 2024 16:09:28 -0700 Subject: [PATCH] CI/CD? --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8cde5e9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +stages: + - publish + +publish: + stage: publish + only: + refs: + - main + + script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker build --tag=$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME -f Dockerfile . + - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME