@@ -73,7 +73,8 @@ services:
7373 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
7474 << : *shared
7575 depends_on :
76- - migrate
76+ migrate :
77+ condition : service_completed_successfully
7778 ports :
7879 - ' 80:80'
7980 command : ["serve", "--env", "${ENV}", "--hostname", "0.0.0.0", "--port", "80"]
@@ -89,7 +90,8 @@ services:
8990 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
9091 << : *shared
9192 depends_on :
92- - migrate
93+ migrate :
94+ condition : service_completed_successfully
9395 entrypoint : ["/bin/bash"]
9496 command : ["-c", "--",
9597 " trap : TERM INT; while true; do ./Run reconcile --env ${ENV}; sleep ${RECONCILE_SLEEP:-120}; done"
@@ -108,7 +110,8 @@ services:
108110 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
109111 << : *shared
110112 depends_on :
111- - migrate
113+ migrate :
114+ condition : service_completed_successfully
112115 entrypoint : ["/bin/bash"]
113116 command : ["-c", "--",
114117 " trap : TERM INT; while true; do ./Run ingest --env ${ENV} --limit ${INGEST_LIMIT:-100}; sleep ${INGEST_SLEEP:-280}; done"
@@ -127,7 +130,8 @@ services:
127130 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
128131 << : *shared
129132 depends_on :
130- - migrate
133+ migrate :
134+ condition : service_completed_successfully
131135 entrypoint : ["/bin/bash"]
132136 command : ["-c", "--",
133137 " trap : TERM INT; while true; do ./Run analyze --env ${ENV} --limit ${ANALYZE_LIMIT:-5}; sleep ${ANALYZE_SLEEP:-10}; done"
@@ -146,7 +150,8 @@ services:
146150 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
147151 << : *shared
148152 depends_on :
149- - migrate
153+ migrate :
154+ condition : service_completed_successfully
150155 entrypoint : ["/bin/bash"]
151156 command : ["-c", "--",
152157 " trap : TERM INT; while true; do ./Run trigger-builds --env ${ENV} --limit ${BUILD_TRIGGER_LIMIT:-1}; sleep ${BUILD_TRIGGER_SLEEP:-60}; done"
@@ -164,7 +169,8 @@ services:
164169 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
165170 << : *shared
166171 depends_on :
167- - migrate
172+ migrate :
173+ condition : service_completed_successfully
168174 entrypoint : ["/bin/bash"]
169175 command : ["-c", "--",
170176 " trap : TERM INT; while true; do ./Run alerting --env ${ENV} --time-period ${ALERTING_TIME_PERIOD:-4} --limit ${ALERTING_LIMIT:-2000}; sleep ${ALERTING_SLEEP:-300}; done"
0 commit comments