Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gitea/test_env image instead of golang #23455

Merged
merged 2 commits into from
Mar 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 17 additions & 32 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
- make deps-frontend

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -92,7 +92,7 @@ steps:
depends_on: [deps-frontend]

- name: checks-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
commands:
- make --always-make checks-backend # ensure the 'go-licenses' make target runs
depends_on: [deps-backend]
Expand All @@ -113,7 +113,7 @@ steps:
depends_on: [deps-frontend]

- name: build-backend-no-gcc
image: golang:1.19 # this step is kept as the lowest version of golang that we support
image: gitea/test_env:linux-1.19-amd64 # this step is kept as the lowest version of golang that we support
pull: always
environment:
GOPROXY: https://goproxy.io
Expand All @@ -125,7 +125,7 @@ steps:
path: /go

- name: build-backend-arm64
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
environment:
GOPROXY: https://goproxy.io
GOOS: linux
Expand All @@ -140,7 +140,7 @@ steps:
path: /go

- name: build-backend-windows
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
environment:
GOPROXY: https://goproxy.io
GOOS: windows
Expand All @@ -154,7 +154,7 @@ steps:
path: /go

- name: build-backend-386
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
environment:
GOPROXY: https://goproxy.io
GOOS: linux
Expand Down Expand Up @@ -217,15 +217,14 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force
when:
event:
exclude:
- pull_request

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -319,15 +318,14 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force
when:
event:
exclude:
- pull_request

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -405,7 +403,7 @@ steps:
path: /go

- name: generate-coverage
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
commands:
- make coverage
environment:
Expand Down Expand Up @@ -473,15 +471,14 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force
when:
event:
exclude:
- pull_request

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -563,15 +560,14 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force
when:
event:
exclude:
- pull_request

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -643,15 +639,14 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force
when:
event:
exclude:
- pull_request

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-arm64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -733,7 +728,7 @@ steps:
depends_on: [deps-frontend]

- name: deps-backend
image: golang:1.18
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -842,7 +837,7 @@ trigger:

steps:
- name: download
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- timeout -s ABRT 40m make generate-license generate-gitignore
Expand Down Expand Up @@ -902,7 +897,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: deps-frontend
Expand All @@ -912,7 +906,7 @@ steps:
- make deps-frontend

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -1038,7 +1032,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: deps-frontend
Expand All @@ -1048,7 +1041,7 @@ steps:
- make deps-frontend

- name: deps-backend
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
pull: always
commands:
- make deps-backend
Expand Down Expand Up @@ -1148,7 +1141,7 @@ trigger:

steps:
- name: build-docs
image: golang:1.20
image: gitea/test_env:linux-1.20-amd64
commands:
- cd docs
- make trans-copy clean build
Expand Down Expand Up @@ -1202,7 +1195,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1280,7 +1272,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1353,7 +1344,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1427,7 +1417,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1545,7 +1534,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1623,7 +1611,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1699,7 +1686,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down Expand Up @@ -1773,7 +1759,6 @@ steps:
image: docker:git
pull: always
commands:
- git config --global --add safe.directory /drone/src
- git fetch --tags --force

- name: publish
Expand Down