From bcf7ef44c55a38bdabe393e0cb2d2c18279a1bbe Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 11 Dec 2022 22:12:53 +0530 Subject: [PATCH] Add a gitlab-ci.yml to build and push Signed-off-by: baalajimaestro --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8d50357 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,7 @@ +docker-build: + stage: build + before_script: + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin + script: + - docker build . -t registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest + - docker push registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest