Address CI warnings (#312)

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/312
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
This commit is contained in:
pat-s 2024-04-27 19:14:01 +00:00 committed by Patrick Schratz
parent 019e85a0d0
commit 7092883ebe

View file

@ -1,5 +1,6 @@
when: when:
branch: main branch: main
event: ["push", "pull_request"]
steps: steps:
# use vendor to cache dependencies # use vendor to cache dependencies
@ -10,7 +11,7 @@ steps:
lint: lint:
image: golangci/golangci-lint:latest image: golangci/golangci-lint:latest
group: compliant depends_on: vendor
pull: true pull: true
commands: commands:
- go version - go version
@ -19,11 +20,11 @@ steps:
- golangci-lint run --timeout 5m --build-tags integration - golangci-lint run --timeout 5m --build-tags integration
editor-config: editor-config:
group: compliant depends_on: []
image: mstruebing/editorconfig-checker image: mstruebing/editorconfig-checker
build: build:
group: compliant depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
commands: commands:
- go version - go version
@ -32,7 +33,7 @@ steps:
event: ["pull_request", "push"] event: ["pull_request", "push"]
docker-dryrun: docker-dryrun:
group: compliant depends_on: vendor
image: plugins/kaniko image: plugins/kaniko
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
@ -43,7 +44,7 @@ steps:
path: Dockerfile path: Dockerfile
build-tag: build-tag:
group: compliant depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
commands: commands:
- go version - go version
@ -52,13 +53,13 @@ steps:
event: ["tag"] event: ["tag"]
test: test:
group: test depends_on: build
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
commands: commands:
- just test - just test
integration-tests: integration-tests:
group: test depends_on: build
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
commands: commands:
- just integration - just integration
@ -69,6 +70,7 @@ steps:
- PORT=4430 - PORT=4430
release: release:
depends_on: build
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
base_url: https://codeberg.org base_url: https://codeberg.org
@ -77,14 +79,15 @@ steps:
api_key: api_key:
from_secret: bot_token from_secret: bot_token
environment: environment:
- DRONE_REPO_OWNER=${CI_REPO_OWNER} - CI_REPO_OWNER=${CI_REPO_OWNER}
- DRONE_REPO_NAME=${CI_REPO_NAME} - CI_REPO_NAME=${CI_REPO_NAME}
- DRONE_BUILD_EVENT=${CI_BUILD_EVENT} - CI_BUILD_EVENT=${CI_BUILD_EVENT}
- DRONE_COMMIT_REF=${CI_COMMIT_REF} - CI_COMMIT_REF=${CI_COMMIT_REF}
when: when:
event: ["tag"] event: ["tag"]
docker-next: docker-next:
depends_on: vendor
image: plugins/kaniko image: plugins/kaniko
settings: settings:
registry: codeberg.org registry: codeberg.org
@ -100,6 +103,7 @@ steps:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
docker-tag: docker-tag:
depends_on: vendor
image: plugins/kaniko image: plugins/kaniko
settings: settings:
registry: codeberg.org registry: codeberg.org