diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..29470ced2d196c935be44303742ac777a7cd8be5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +stages: + - build + +buildGame: + image: node:latest + stage: build + script: + - PATH="./node_modules/.bin:$PATH" + - npm install + - npm build + - cd build + - tar -czf tool.tar.gz * + - mv ./tool.tar.gz .. + artifacts: + paths: + - tool.tar.gz + +deployGame: + image: alpine:latest + stage: deploy + script: + - apk add --no-cache curl + - curl -v --data-binary @game.tar.gz ${DEPLOY_URL}/${CI_PROJECT_NAME}?token=${DEPLOY_TOKEN} | cat + variables: + GIT_STRATEGY: none + only: + - webpack