75
75
command : |
76
76
REGISTRY=316971102342.dkr.ecr.us-west-2.amazonaws.com
77
77
TAG=$(git describe --tags --always --dirty)
78
- docker pull ${REGISTRY}/coach-base:${MASTER_BRANCH }
79
- docker tag ${REGISTRY}/coach-base:${MASTER_BRANCH } coach-base:master
80
- docker build --cache-from ${REGISTRY}/coach-base:${MASTER_BRANCH } -t ${REGISTRY}/coach-gym_environment:${TAG} -f docker/Dockerfile.gym_environment .
78
+ docker pull ${REGISTRY}/coach-base:${TAG }
79
+ docker tag ${REGISTRY}/coach-base:${TAG } coach-base:master
80
+ docker build --cache-from ${REGISTRY}/coach-base:${TAG } -t ${REGISTRY}/coach-gym_environment:${TAG} -f docker/Dockerfile.gym_environment .
81
81
docker push ${REGISTRY}/coach-gym_environment:${TAG}
82
82
no_output_timeout : 10m
83
83
93
93
command : |
94
94
REGISTRY=316971102342.dkr.ecr.us-west-2.amazonaws.com
95
95
TAG=$(git describe --tags --always --dirty)
96
- docker pull ${REGISTRY}/coach-base:${MASTER_BRANCH }
97
- docker tag ${REGISTRY}/coach-base:${MASTER_BRANCH } coach-base:master
98
- docker build --cache-from ${REGISTRY}/coach-base:${MASTER_BRANCH } -t ${REGISTRY}/coach-doom_environment:${TAG} -f docker/Dockerfile.doom_environment .
96
+ docker pull ${REGISTRY}/coach-base:${TAG }
97
+ docker tag ${REGISTRY}/coach-base:${TAG } coach-base:master
98
+ docker build --cache-from ${REGISTRY}/coach-base:${TAG } -t ${REGISTRY}/coach-doom_environment:${TAG} -f docker/Dockerfile.doom_environment .
99
99
docker push ${REGISTRY}/coach-doom_environment:${TAG}
100
100
no_output_timeout : 10m
101
101
@@ -111,9 +111,9 @@ jobs:
111
111
command : |
112
112
REGISTRY=316971102342.dkr.ecr.us-west-2.amazonaws.com
113
113
TAG=$(git describe --tags --always --dirty)
114
- docker pull ${REGISTRY}/coach-base:${MASTER_BRANCH }
115
- docker tag ${REGISTRY}/coach-base:${MASTER_BRANCH } coach-base:master
116
- docker build --cache-from ${REGISTRY}/coach-base:${MASTER_BRANCH } --build-arg MUJOCO_KEY=${MUJOCO_KEY} -t ${REGISTRY}/coach-mujoco_environment:${TAG} -f docker/Dockerfile.mujoco_environment .
114
+ docker pull ${REGISTRY}/coach-base:${TAG }
115
+ docker tag ${REGISTRY}/coach-base:${TAG } coach-base:master
116
+ docker build --cache-from ${REGISTRY}/coach-base:${TAG } --build-arg MUJOCO_KEY=${MUJOCO_KEY} -t ${REGISTRY}/coach-mujoco_environment:${TAG} -f docker/Dockerfile.mujoco_environment .
117
117
docker push ${REGISTRY}/coach-mujoco_environment:${TAG}
118
118
no_output_timeout : 10m
119
119
@@ -130,9 +130,9 @@ jobs:
130
130
# command: |
131
131
# REGISTRY=316971102342.dkr.ecr.us-west-2.amazonaws.com
132
132
# TAG=$(git describe --tags --always --dirty)
133
- # docker pull ${REGISTRY}/coach-base:${MASTER_BRANCH }
134
- # docker tag ${REGISTRY}/coach-base:${MASTER_BRANCH } coach-base:master
135
- # docker build --cache-from ${REGISTRY}/coach-base:${MASTER_BRANCH } -t ${REGISTRY}/coach-starcraft_environment:${TAG} -f docker/Dockerfile.starcraft_environment .
133
+ # docker pull ${REGISTRY}/coach-base:${TAG }
134
+ # docker tag ${REGISTRY}/coach-base:${TAG } coach-base:master
135
+ # docker build --cache-from ${REGISTRY}/coach-base:${TAG } -t ${REGISTRY}/coach-starcraft_environment:${TAG} -f docker/Dockerfile.starcraft_environment .
136
136
# docker push ${REGISTRY}/coach-starcraft_environment:${TAG}
137
137
# no_output_timeout: 10m
138
138
@@ -614,6 +614,9 @@ workflows:
614
614
- multinode_test :
615
615
requires :
616
616
- multinode_approval
617
+ # NOTE: build_gym/doom/mujoco_env MUST occur after successful build_base stage
618
+ # In this workflow this is satisfied by having this flow:
619
+ # build_base --> e2e_approval --> build_*_env
617
620
- e2e_approval :
618
621
type : approval
619
622
requires :
@@ -718,10 +721,17 @@ workflows:
718
721
only :
719
722
- master
720
723
jobs :
721
- - build_gym_env
722
- - build_doom_env
723
- - build_mujoco_env
724
724
- build_base
725
+ # NOTE: build_gym/doom/mujoco_env MUST occur after successful build_base stage
726
+ - build_gym_env :
727
+ requires :
728
+ - build_base
729
+ - build_doom_env :
730
+ requires :
731
+ - build_base
732
+ - build_mujoco_env :
733
+ requires :
734
+ - build_base
725
735
- unit_tests :
726
736
requires :
727
737
- build_base
0 commit comments