make the app deployable on gitapp.si

This commit is contained in:
Aljaz S
2021-11-16 21:17:16 +01:00
parent 57a3b27993
commit 8e072824e4
3 changed files with 28 additions and 0 deletions

14
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,14 @@
deploy:
image: alpine:latest
stage: deploy
variables:
GITAPP_URL: https://gitapp.si
GITAPP_NAME: upn-qr
tags:
- exec-docker
script:
- apk add nodejs~=14 npm git
- npm install --global caprover
- caprover deploy --caproverUrl $GITAPP_URL --appToken $GITAPP_TOKEN --appName $GITAPP_NAME --branch origin/master
only:
- master

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM alpine
WORKDIR /home
RUN apk add nodejs yarn
COPY src/ /home/
RUN yarn install
CMD [ "yarn", "run", "start" ]

4
captain-definition Normal file
View File

@@ -0,0 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}