@@ -75,7 +75,8 @@ services:
7575 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
7676 << : *shared
7777 depends_on :
78- - migrate
78+ migrate :
79+ condition : service_completed_successfully
7980 ports :
8081 - ' 80:80'
8182 command : ["serve", "--env", "${ENV}", "--hostname", "0.0.0.0", "--port", "80"]
@@ -91,7 +92,8 @@ services:
9192 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
9293 << : *shared
9394 depends_on :
94- - migrate
95+ migrate :
96+ condition : service_completed_successfully
9597 entrypoint : ["/bin/bash"]
9698 command : ["-c", "--",
9799 " trap : TERM INT; while true; do ./Run reconcile --env ${ENV}; sleep ${RECONCILE_SLEEP:-120}; done"
@@ -110,7 +112,8 @@ services:
110112 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
111113 << : *shared
112114 depends_on :
113- - migrate
115+ migrate :
116+ condition : service_completed_successfully
114117 entrypoint : ["/bin/bash"]
115118 command : ["-c", "--",
116119 " trap : TERM INT; while true; do ./Run ingest --env ${ENV} --limit ${INGEST_LIMIT:-100}; sleep ${INGEST_SLEEP:-280}; done"
@@ -129,7 +132,8 @@ services:
129132 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
130133 << : *shared
131134 depends_on :
132- - migrate
135+ migrate :
136+ condition : service_completed_successfully
133137 entrypoint : ["/bin/bash"]
134138 command : ["-c", "--",
135139 " trap : TERM INT; while true; do ./Run analyze --env ${ENV} --limit ${ANALYZE_LIMIT:-5}; sleep ${ANALYZE_SLEEP:-10}; done"
@@ -148,7 +152,8 @@ services:
148152 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
149153 << : *shared
150154 depends_on :
151- - migrate
155+ migrate :
156+ condition : service_completed_successfully
152157 entrypoint : ["/bin/bash"]
153158 command : ["-c", "--",
154159 " trap : TERM INT; while true; do ./Run trigger-builds --env ${ENV} --limit ${BUILD_TRIGGER_LIMIT:-1}; sleep ${BUILD_TRIGGER_SLEEP:-60}; done"
@@ -166,7 +171,8 @@ services:
166171 image : registry.gitlab.com/finestructure/swiftpackageindex:${VERSION}
167172 << : *shared
168173 depends_on :
169- - migrate
174+ migrate :
175+ condition : service_completed_successfully
170176 entrypoint : ["/bin/bash"]
171177 command : ["-c", "--",
172178 " 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