Skip to content

Commit 22c72bd

Browse files
committed
Update CI
Bump image versions Start using cloud runner instead of k8s-docker Set global CI defaults
1 parent eab5c4b commit 22c72bd

1 file changed

Lines changed: 11 additions & 27 deletions

File tree

.gitlab-ci.yml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ variables:
77
API_IMAGE: us.gcr.io/satellite-api/satellite-api
88
SSE_IMAGE: us.gcr.io/satellite-api/satellite-api-sse
99

10-
image: blockstream/gcloud-docker:1.0.5
10+
default:
11+
image: blockstream/gcloud-docker:502.0.0-27.3
12+
tags:
13+
- k8s
14+
1115
stages:
1216
- test
1317
- build
@@ -27,8 +31,6 @@ before_script:
2731
unit_tests:
2832
stage: test
2933
image: python:3.9
30-
tags:
31-
- k8s
3234
except:
3335
- cleanup_staging@satellite/satellite-api
3436
- /^staging_.*/
@@ -48,9 +50,9 @@ unit_tests:
4850
docker_build:
4951
stage: build
5052
tags:
51-
- k8s-docker
53+
- cloud
5254
services:
53-
- docker:20.10.12-dind
55+
- docker:27-dind
5456
only:
5557
- branches@satellite/satellite-api
5658
except:
@@ -80,10 +82,10 @@ docker_build:
8082
docker_push:
8183
stage: build
8284
tags:
83-
- k8s-docker
85+
- cloud
8486
when: manual
8587
services:
86-
- docker:20.10.12-dind
88+
- docker:27-dind
8789
only:
8890
- branches@satellite/satellite-api
8991
parallel:
@@ -114,9 +116,9 @@ docker_push:
114116
tag_docker_push:
115117
stage: build
116118
tags:
117-
- k8s-docker
119+
- cloud
118120
services:
119-
- docker:20.10.12-dind
121+
- docker:27-dind
120122
only:
121123
- /^staging_.*/
122124
- /^prod_.*/
@@ -150,8 +152,6 @@ tag_docker_push:
150152
# Any newly-pushed, WIP branch will be ran through plan (keep in mind docker images are using the latest tag, which may be an older one since the current commit may not match an available image)
151153
plan_staging:
152154
stage: plan
153-
tags:
154-
- k8s
155155
only:
156156
- branches@satellite/satellite-api
157157
except:
@@ -189,8 +189,6 @@ plan_staging:
189189
deploy_staging:
190190
stage: deploy
191191
when: manual
192-
tags:
193-
- k8s
194192
only:
195193
- /^staging_v.*/
196194
script:
@@ -221,8 +219,6 @@ deploy_staging:
221219
# Tag with prod_v.* to plan mainnet + LB to production (e.g. prod_v0.1.1)
222220
plan_production:
223221
stage: plan
224-
tags:
225-
- k8s
226222
only:
227223
- /^prod_v.*/
228224
script:
@@ -254,8 +250,6 @@ plan_production:
254250
deploy_production:
255251
stage: deploy
256252
when: manual
257-
tags:
258-
- k8s
259253
only:
260254
- /^prod_v.*/
261255
script:
@@ -286,8 +280,6 @@ deploy_production:
286280
# Tag with testnet_prod_v.* to plan testnet to production (e.g. testnet_prod_v0.1.1)
287281
plan_production_testnet:
288282
stage: plan
289-
tags:
290-
- k8s
291283
only:
292284
- /^testnet_prod_v.*/
293285
script:
@@ -315,8 +307,6 @@ plan_production_testnet:
315307
deploy_production_testnet:
316308
stage: deploy
317309
when: manual
318-
tags:
319-
- k8s
320310
only:
321311
- /^testnet_prod_v.*/
322312
script:
@@ -343,8 +333,6 @@ deploy_production_testnet:
343333
# This plan gets triggered only for miscellaneous branches/tags (i.e. tor, prometheus, etc), so make sure the branch/tag name starts with misc_
344334
plan_misc:
345335
stage: plan
346-
tags:
347-
- k8s
348336
only:
349337
- /^misc_v.*/
350338
script:
@@ -371,8 +359,6 @@ plan_misc:
371359
deploy_misc:
372360
stage: deploy
373361
when: manual
374-
tags:
375-
- k8s
376362
only:
377363
- /^misc_v.*/
378364
script:
@@ -398,8 +384,6 @@ deploy_misc:
398384
# Pushing to this branch destroys the staging infrastructure
399385
cleanup_staging:
400386
stage: deploy
401-
tags:
402-
- k8s
403387
only:
404388
- cleanup_staging@satellite/satellite-api
405389
script:

0 commit comments

Comments
 (0)