From 6ae7e0ee30ed15af1f7ef078dd86778b3bbb44e5 Mon Sep 17 00:00:00 2001 From: Private GER Date: Sat, 16 Oct 2021 22:14:26 +0000 Subject: [PATCH] Let's add some fancy CD into the mix! --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..54ae6b2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Go.gitlab-ci.yml + +image: golang:latest + +stages: + - build + - deploy + +compile: + stage: build + script: + - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/ytdlp-archive-viewer . + artifacts: + paths: + - ytdlp-archive-viewer