-
Notifications
You must be signed in to change notification settings - Fork 0
/
dlc.sh
36 lines (32 loc) · 1.49 KB
/
dlc.sh
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
#!/bin/bash
set -e
DOCKER_BUILDKIT=1 docker build \
--target planner \
--tag jsalverda/jarvis-p1-exporter:dlc-main-planner \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-planner \
--build-arg BUILDKIT_INLINE_CACHE=1 .
DOCKER_BUILDKIT=1 docker push jsalverda/jarvis-p1-exporter:dlc-main-planner
DOCKER_BUILDKIT=1 docker build \
--target cacher \
--tag jsalverda/jarvis-p1-exporter:dlc-main-cacher \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-planner \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-cacher \
--build-arg BUILDKIT_INLINE_CACHE=1 .
DOCKER_BUILDKIT=1 docker push jsalverda/jarvis-p1-exporter:dlc-main-cacher
DOCKER_BUILDKIT=1 docker build \
--target builder \
--tag jsalverda/jarvis-p1-exporter:dlc-main-builder \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-planner \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-cacher \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-builder \
--build-arg BUILDKIT_INLINE_CACHE=1 .
DOCKER_BUILDKIT=1 docker push jsalverda/jarvis-p1-exporter:dlc-main-builder
DOCKER_BUILDKIT=1 docker build \
--target runtime \
--tag jsalverda/jarvis-p1-exporter:dlc-main-runtime \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-planner \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-cacher \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-builder \
--cache-from jsalverda/jarvis-p1-exporter:dlc-main-runtime \
--build-arg BUILDKIT_INLINE_CACHE=1 .
DOCKER_BUILDKIT=1 docker push jsalverda/jarvis-p1-exporter:dlc-main-runtime