-
Notifications
You must be signed in to change notification settings - Fork 0
/
werf.yaml
39 lines (38 loc) · 983 Bytes
/
werf.yaml
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
38
39
configVersion: 1
project: "web-client"
---
image: web
dockerfile: Dockerfile
# from: registry.gitlab.com/tokend/devops/docker-containers:front14-8f59ce732e426d630f320b725dc514010e171fad
# git:
# - add: /
# to: /app
# stageDependencies:
# install:
# - package.json
# - yarn.lock
# setup:
# - "**/*"
# shell:
# install:
# - cd /app
# #- yarn autoclean --init
# #- yarn autoclean --force
# - yarn install
# setup:
# - cd /app
# - yarn build
# - sh -c '[ -d /app/dist/files ] && echo "$FILE exist." || mkdir -p /app/dist/files'
# - sh -c '[ -d /app/files ] && echo "$FILE exist." || mkdir -p /app/files'
# - sh -c '[ -z "`ls /app/files`" ] && echo "Empty" || cp -r /app/files/* /app/dist/files'
# ---
# image: web
# from: nginx:alpine
# git:
# - add: /nginx.conf
# to: /etc/nginx/nginx.conf
# import:
# - image: builder
# add: /app/dist
# to: /usr/share/nginx/html
# after: setup