mirror of
https://gitplac.si/aljaxus/upn-qr.git
synced 2025-12-16 19:50:57 +00:00
make the app deployable on gitapp.si
This commit is contained in:
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal 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
10
Dockerfile
Normal 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
4
captain-definition
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"dockerfilePath": "./Dockerfile"
|
||||
}
|
||||
Reference in New Issue
Block a user