From e4cabfadb1ad5691d4cfbe33e81c4f49594b651c Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Sat, 27 Mar 2021 19:47:21 +1300 Subject: [PATCH] Add gitlab-ci file --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..7b8cd61d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +stages: + - build + - bundle + +build-go: + image: golang:1.16.2 + stage: build + script: + - go build -o goscrobble cmd/go-scrobble/*.go + artifacts: + expire_in: 1 day + paths: + - goscrobble + - migrations + - init + +build-react: + image: node:15.12.0 + stage: build + variables: + REACT_APP_API_URL: "https://goscrobble.com" + script: + - cd web + - npm install + - npm run build + artifacts: + expire_in: 1 day + paths: + - web/build + - web/public + - .env.example + +bundle: + image: idk + stage: bundle + variables: + GIT_STRATEGY: none + script: + - ls -lah \ No newline at end of file