Skip to content

Commit e82150d

Browse files
silverwindzeripath
andauthored
Reduce number of docker pulls on ci (go-gitea#13739)
Should reduce errors like https://drone.gitea.io/go-gitea/gitea/32989/7/2 by only pulling each distinct image once per pipeline. Co-authored-by: zeripath <[email protected]>
1 parent 4f82a0b commit e82150d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

.drone.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ steps:
1818
- make node_modules
1919

2020
- name: lint-frontend
21-
pull: always
2221
image: node:14
2322
commands:
2423
- make lint-frontend
@@ -35,7 +34,6 @@ steps:
3534
TAGS: bindata sqlite sqlite_unlock_notify
3635

3736
- name: checks-frontend
38-
pull: always
3937
image: node:14
4038
commands:
4139
- make checks-frontend
@@ -49,7 +47,6 @@ steps:
4947
depends_on: [lint-backend]
5048

5149
- name: build-frontend
52-
pull: always
5350
image: node:14
5451
commands:
5552
- make frontend
@@ -66,7 +63,6 @@ steps:
6663
depends_on: [checks-backend]
6764

6865
- name: build-backend-arm64
69-
pull: always
7066
image: golang:1.15
7167
environment:
7268
GO111MODULE: on
@@ -80,7 +76,6 @@ steps:
8076
depends_on: [checks-backend]
8177

8278
- name: build-backend-386
83-
pull: always
8479
image: golang:1.15
8580
environment:
8681
GO111MODULE: on
@@ -108,33 +103,28 @@ workspace:
108103

109104
services:
110105
- name: mysql
111-
pull: default
112106
image: mysql:5.7
113107
environment:
114108
MYSQL_ALLOW_EMPTY_PASSWORD: yes
115109
MYSQL_DATABASE: test
116110

117111
- name: mysql8
118-
pull: default
119112
image: mysql:8.0
120113
environment:
121114
MYSQL_ALLOW_EMPTY_PASSWORD: yes
122115
MYSQL_DATABASE: testgitea
123116

124117
- name: mssql
125-
pull: default
126118
image: mcr.microsoft.com/mssql/server:latest
127119
environment:
128120
ACCEPT_EULA: Y
129121
MSSQL_PID: Standard
130122
SA_PASSWORD: MwantsaSecurePassword1
131123

132124
- name: ldap
133-
pull: default
134125
image: gitea/test-openldap:latest
135126

136127
- name: elasticsearch
137-
pull: default
138128
environment:
139129
discovery.type: single-node
140130
image: elasticsearch:7.5.0
@@ -149,7 +139,6 @@ services:
149139

150140
steps:
151141
- name: fetch-tags
152-
pull: default
153142
image: docker:git
154143
commands:
155144
- git fetch --tags --force
@@ -175,7 +164,6 @@ steps:
175164
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
176165

177166
- name: unit-test
178-
pull: always
179167
image: golang:1.15
180168
commands:
181169
- make unit-test-coverage test-check
@@ -186,7 +174,6 @@ steps:
186174
from_secret: github_read_token
187175

188176
- name: test-mysql
189-
pull: always
190177
image: golang:1.15
191178
commands:
192179
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -202,7 +189,6 @@ steps:
202189
- build
203190

204191
- name: test-mysql8
205-
pull: always
206192
image: golang:1.15
207193
commands:
208194
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -217,7 +203,6 @@ steps:
217203
- build
218204

219205
- name: test-mssql
220-
pull: always
221206
image: golang:1.15
222207
commands:
223208
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -232,7 +217,6 @@ steps:
232217
- build
233218

234219
- name: generate-coverage
235-
pull: always
236220
image: golang:1.15
237221
commands:
238222
- make coverage
@@ -295,7 +279,6 @@ services:
295279

296280
steps:
297281
- name: fetch-tags
298-
pull: default
299282
image: docker:git
300283
commands:
301284
- git fetch --tags --force
@@ -315,7 +298,6 @@ steps:
315298
TAGS: bindata sqlite sqlite_unlock_notify
316299

317300
- name: test-sqlite
318-
pull: always
319301
image: golang:1.15
320302
commands:
321303
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -329,7 +311,6 @@ steps:
329311
- build
330312

331313
- name: test-pgsql
332-
pull: always
333314
image: golang:1.15
334315
commands:
335316
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -431,7 +412,6 @@ depends_on:
431412

432413
steps:
433414
- name: fetch-tags
434-
pull: default
435415
image: docker:git
436416
commands:
437417
- git fetch --tags --force
@@ -485,7 +465,6 @@ steps:
485465
- push
486466

487467
- name: release-master
488-
pull: always
489468
image: plugins/s3:1
490469
settings:
491470
acl: public-read
@@ -644,7 +623,6 @@ trigger:
644623

645624
steps:
646625
- name: fetch-tags
647-
pull: default
648626
image: docker:git
649627
commands:
650628
- git fetch --tags --force
@@ -668,7 +646,6 @@ steps:
668646
- pull_request
669647

670648
- name: publish-rootless
671-
pull: always
672649
image: plugins/docker:linux-amd64
673650
settings:
674651
dockerfile: Dockerfile.rootless
@@ -747,7 +724,6 @@ trigger:
747724
- "refs/tags/**"
748725
steps:
749726
- name: fetch-tags
750-
pull: default
751727
image: docker:git
752728
commands:
753729
- git fetch --tags --force
@@ -774,7 +750,6 @@ steps:
774750
- pull_request
775751

776752
- name: publish-rootless
777-
pull: always
778753
image: plugins/docker:linux-arm64
779754
settings:
780755
dockerfile: Dockerfile.rootless
@@ -817,7 +792,6 @@ steps:
817792
from_secret: docker_username
818793

819794
- name: manifest
820-
pull: always
821795
image: plugins/manifest
822796
settings:
823797
auto_tag: true

0 commit comments

Comments
 (0)