-
Notifications
You must be signed in to change notification settings - Fork 112
/
.gitlab-ci.yml
37 lines (28 loc) · 1.17 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
image: docker:stable
variables:
DOCKER_DRIVER: overlay
DOCKER_CHANNEL: stable
DOCKER_VERSION: 17.06.1-ce
services:
- docker:dind
before_script:
- apk --update add ca-certificates wget openssl openssh-client curl git grep gmp-dev libmcrypt-dev freetype-dev libxpm-dev libwebp-dev libjpeg-turbo-dev libjpeg bzip2-dev krb5-dev libxml2-dev build-base tar make autoconf re2c bison curl-dev
- update-ca-certificates
- apk add --update nodejs nodejs-npm
- npm config set unsafe-perm true
- npm install
buid:
only:
- master
script:
- npx tsc --project tsconfig.prod.json
- node build.js
- find . -type f -name '*.ts' -exec rm {} +
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/masari-project/masari-webwallet/php -f docker/Webserver-php.dockerfile .
- docker push registry.gitlab.com/masari-project/masari-webwallet/php
- docker build -t registry.gitlab.com/masari-project/masari-webwallet/webserver -f docker/Webserver.dockerfile .
- docker push registry.gitlab.com/masari-project/masari-webwallet/webserver
artifacts:
paths:
- src/