-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cicd.yml
More file actions
36 lines (33 loc) · 847 Bytes
/
docker-compose.cicd.yml
File metadata and controls
36 lines (33 loc) · 847 Bytes
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
# Services definition override for CI/CD
services:
app-volumes:
# Build
image: matiboux/chown-volumes:latest
# Deploy
environment:
UID: ${DOCKER_UID:-${UID:-1000}}
VOLUMES: |
/dist
volumes:
- ./app/dist:/dist
app:
# Extend
extends:
file: ./docker-compose.yml
service: app
# Build override
image: ${IMAGES_PREFIX:-app}-cicd:${IMAGES_TAG:-latest}
build:
target: app_prod_build
args:
UID: ${DOCKER_UID:-${UID:-1000}}
BUILD_CHECK: ${BUILD_CHECK:-false}
# Deploy override
depends_on:
app-volumes:
condition: service_completed_successfully
user: ${DOCKER_UID:-${UID:-1000}}
environment: !reset null
command: [ 'sh', '-c', 'rm -rf /dist/* && cp -r /app/dist/* /dist' ]
volumes:
- ./app/dist:/dist