mirror of
https://github.com/go-gitea/gitea
synced 2024-12-21 16:07:51 +01:00
Reduce number of docker pulls on ci (#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 <art27@cantab.net>
This commit is contained in:
parent
4f82a0b12e
commit
e82150d41b
26
.drone.yml
26
.drone.yml
@ -18,7 +18,6 @@ steps:
|
|||||||
- make node_modules
|
- make node_modules
|
||||||
|
|
||||||
- name: lint-frontend
|
- name: lint-frontend
|
||||||
pull: always
|
|
||||||
image: node:14
|
image: node:14
|
||||||
commands:
|
commands:
|
||||||
- make lint-frontend
|
- make lint-frontend
|
||||||
@ -35,7 +34,6 @@ steps:
|
|||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
|
|
||||||
- name: checks-frontend
|
- name: checks-frontend
|
||||||
pull: always
|
|
||||||
image: node:14
|
image: node:14
|
||||||
commands:
|
commands:
|
||||||
- make checks-frontend
|
- make checks-frontend
|
||||||
@ -49,7 +47,6 @@ steps:
|
|||||||
depends_on: [lint-backend]
|
depends_on: [lint-backend]
|
||||||
|
|
||||||
- name: build-frontend
|
- name: build-frontend
|
||||||
pull: always
|
|
||||||
image: node:14
|
image: node:14
|
||||||
commands:
|
commands:
|
||||||
- make frontend
|
- make frontend
|
||||||
@ -66,7 +63,6 @@ steps:
|
|||||||
depends_on: [checks-backend]
|
depends_on: [checks-backend]
|
||||||
|
|
||||||
- name: build-backend-arm64
|
- name: build-backend-arm64
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
@ -80,7 +76,6 @@ steps:
|
|||||||
depends_on: [checks-backend]
|
depends_on: [checks-backend]
|
||||||
|
|
||||||
- name: build-backend-386
|
- name: build-backend-386
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
@ -108,21 +103,18 @@ workspace:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
pull: default
|
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: test
|
MYSQL_DATABASE: test
|
||||||
|
|
||||||
- name: mysql8
|
- name: mysql8
|
||||||
pull: default
|
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: testgitea
|
MYSQL_DATABASE: testgitea
|
||||||
|
|
||||||
- name: mssql
|
- name: mssql
|
||||||
pull: default
|
|
||||||
image: mcr.microsoft.com/mssql/server:latest
|
image: mcr.microsoft.com/mssql/server:latest
|
||||||
environment:
|
environment:
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: Y
|
||||||
@ -130,11 +122,9 @@ services:
|
|||||||
SA_PASSWORD: MwantsaSecurePassword1
|
SA_PASSWORD: MwantsaSecurePassword1
|
||||||
|
|
||||||
- name: ldap
|
- name: ldap
|
||||||
pull: default
|
|
||||||
image: gitea/test-openldap:latest
|
image: gitea/test-openldap:latest
|
||||||
|
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
pull: default
|
|
||||||
environment:
|
environment:
|
||||||
discovery.type: single-node
|
discovery.type: single-node
|
||||||
image: elasticsearch:7.5.0
|
image: elasticsearch:7.5.0
|
||||||
@ -149,7 +139,6 @@ services:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
pull: default
|
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
@ -175,7 +164,6 @@ steps:
|
|||||||
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
|
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
|
||||||
|
|
||||||
- name: unit-test
|
- name: unit-test
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- make unit-test-coverage test-check
|
- make unit-test-coverage test-check
|
||||||
@ -186,7 +174,6 @@ steps:
|
|||||||
from_secret: github_read_token
|
from_secret: github_read_token
|
||||||
|
|
||||||
- name: test-mysql
|
- name: test-mysql
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
||||||
@ -202,7 +189,6 @@ steps:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-mysql8
|
- name: test-mysql8
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
||||||
@ -217,7 +203,6 @@ steps:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-mssql
|
- name: test-mssql
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
||||||
@ -232,7 +217,6 @@ steps:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
- name: generate-coverage
|
- name: generate-coverage
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- make coverage
|
- make coverage
|
||||||
@ -295,7 +279,6 @@ services:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
pull: default
|
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
@ -315,7 +298,6 @@ steps:
|
|||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
|
|
||||||
- name: test-sqlite
|
- name: test-sqlite
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
||||||
@ -329,7 +311,6 @@ steps:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-pgsql
|
- name: test-pgsql
|
||||||
pull: always
|
|
||||||
image: golang:1.15
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
||||||
@ -431,7 +412,6 @@ depends_on:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
pull: default
|
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
@ -485,7 +465,6 @@ steps:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
- name: release-master
|
- name: release-master
|
||||||
pull: always
|
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl: public-read
|
||||||
@ -644,7 +623,6 @@ trigger:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
pull: default
|
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
@ -668,7 +646,6 @@ steps:
|
|||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
- name: publish-rootless
|
- name: publish-rootless
|
||||||
pull: always
|
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
@ -747,7 +724,6 @@ trigger:
|
|||||||
- "refs/tags/**"
|
- "refs/tags/**"
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
pull: default
|
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
@ -774,7 +750,6 @@ steps:
|
|||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
- name: publish-rootless
|
- name: publish-rootless
|
||||||
pull: always
|
|
||||||
image: plugins/docker:linux-arm64
|
image: plugins/docker:linux-arm64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
@ -817,7 +792,6 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
|
|
||||||
- name: manifest
|
- name: manifest
|
||||||
pull: always
|
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
Loading…
Reference in New Issue
Block a user