mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +00:00
tmp: fix to make ci run agian
This commit is contained in:
parent
e2e094cfda
commit
e172b66d53
4 changed files with 162 additions and 162 deletions
|
@ -9,95 +9,95 @@ pipeline:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn install --frozen-lockfile
|
- yarn install --frozen-lockfile
|
||||||
- yarn build
|
- yarn build
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
build-server:
|
build-server:
|
||||||
group: build
|
group: build
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- make release-server
|
- make release-server
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
build-agent:
|
build-agent:
|
||||||
group: build
|
group: build
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- make release-agent
|
- make release-agent
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
build-cli:
|
build-cli:
|
||||||
group: build
|
group: build
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- make release-cli
|
- make release-cli
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
build-deb-rpm:
|
build-deb-rpm:
|
||||||
group: bundle
|
group: bundle
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- make bundle
|
- make bundle
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
checksums:
|
checksums:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- make release-checksums
|
- make release-checksums
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}
|
# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
@ -106,16 +106,16 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ls -la dist/*.*
|
- ls -la dist/*.*
|
||||||
- cat dist/checksums.txt
|
- cat dist/checksums.txt
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/binaries.yml"
|
# - ".woodpecker/binaries.yml"
|
||||||
- "nfpm/*.yml"
|
# - "nfpm/*.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# web source code
|
# # web source code
|
||||||
- "web/**"
|
# - "web/**"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
|
|
|
@ -7,9 +7,9 @@ pipeline:
|
||||||
- yarn build
|
- yarn build
|
||||||
when:
|
when:
|
||||||
event: [push, pull_request]
|
event: [push, pull_request]
|
||||||
path:
|
# path:
|
||||||
- "docs/**"
|
# - "docs/**"
|
||||||
- ".woodpecker/docs.yml"
|
# - ".woodpecker/docs.yml"
|
||||||
|
|
||||||
deploy-preview:
|
deploy-preview:
|
||||||
image: woodpeckerci/plugin-surge-preview:next
|
image: woodpeckerci/plugin-surge-preview:next
|
||||||
|
@ -23,9 +23,9 @@ pipeline:
|
||||||
from_secret: GITHUB_TOKEN_SURGE
|
from_secret: GITHUB_TOKEN_SURGE
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path:
|
# path:
|
||||||
- "docs/**"
|
# - "docs/**"
|
||||||
- ".woodpecker/docs.yml"
|
# - ".woodpecker/docs.yml"
|
||||||
# TODO: add step to remove preview again after PR is closed (waiting for #286)
|
# TODO: add step to remove preview again after PR is closed (waiting for #286)
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -52,7 +52,7 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
path:
|
# path:
|
||||||
- "docs/**"
|
# - "docs/**"
|
||||||
- ".woodpecker/docs.yml"
|
# - ".woodpecker/docs.yml"
|
||||||
|
|
||||||
|
|
|
@ -3,38 +3,38 @@ pipeline:
|
||||||
image: woodpeckerci/woodpecker-cli:next-alpine
|
image: woodpeckerci/woodpecker-cli:next-alpine
|
||||||
commands:
|
commands:
|
||||||
- woodpecker-cli lint
|
- woodpecker-cli lint
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
- ".woodpecker/**"
|
# - ".woodpecker/**"
|
||||||
|
|
||||||
dummy-web:
|
dummy-web:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p web/dist/
|
- mkdir -p web/dist/
|
||||||
- echo "test" > web/dist/index.html
|
- echo "test" > web/dist/index.html
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# schema changes
|
# # schema changes
|
||||||
- "pipeline/schema/**"
|
# - "pipeline/schema/**"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
group: test
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
- ".golangci.yml"
|
# - ".golangci.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
|
@ -44,15 +44,15 @@ pipeline:
|
||||||
- make test-server
|
- make test-server
|
||||||
- make test-cli
|
- make test-cli
|
||||||
- make test-lib
|
- make test-lib
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# schema changes
|
# # schema changes
|
||||||
- "pipeline/schema/**"
|
# - "pipeline/schema/**"
|
||||||
|
|
||||||
sqlite:
|
sqlite:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
|
@ -61,13 +61,13 @@ pipeline:
|
||||||
- WOODPECKER_DATABASE_DRIVER=sqlite3
|
- WOODPECKER_DATABASE_DRIVER=sqlite3
|
||||||
commands:
|
commands:
|
||||||
- make test-server-datastore-coverage
|
- make test-server-datastore-coverage
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
|
@ -77,13 +77,13 @@ pipeline:
|
||||||
- WOODPECKER_DATABASE_DATASOURCE=host=service-postgres user=postgres dbname=postgres sslmode=disable
|
- WOODPECKER_DATABASE_DATASOURCE=host=service-postgres user=postgres dbname=postgres sslmode=disable
|
||||||
commands:
|
commands:
|
||||||
- make test-server-datastore
|
- make test-server-datastore
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
|
@ -93,13 +93,13 @@ pipeline:
|
||||||
- WOODPECKER_DATABASE_DATASOURCE=root@tcp(service-mysql:3306)/test?parseTime=true
|
- WOODPECKER_DATABASE_DATASOURCE=root@tcp(service-mysql:3306)/test?parseTime=true
|
||||||
commands:
|
commands:
|
||||||
- make test-server-datastore
|
- make test-server-datastore
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
||||||
codecov:
|
codecov:
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -112,15 +112,15 @@ pipeline:
|
||||||
- datastore-coverage.out
|
- datastore-coverage.out
|
||||||
token:
|
token:
|
||||||
from_secret: codecov_token
|
from_secret: codecov_token
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
# schema changes
|
# # schema changes
|
||||||
- "pipeline/schema/**"
|
# - "pipeline/schema/**"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
service-postgres:
|
service-postgres:
|
||||||
|
@ -129,13 +129,13 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=postgres
|
- POSTGRES_USER=postgres
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
||||||
service-mysql:
|
service-mysql:
|
||||||
image: mysql:5.6.27
|
image: mysql:5.6.27
|
||||||
|
@ -143,10 +143,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=test
|
- MYSQL_DATABASE=test
|
||||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||||
when:
|
# when:
|
||||||
path:
|
# path:
|
||||||
# related config files
|
# # related config files
|
||||||
- ".woodpecker/test.yml"
|
# - ".woodpecker/test.yml"
|
||||||
# go source code
|
# # go source code
|
||||||
- "**/*.go"
|
# - "**/*.go"
|
||||||
- "go.*"
|
# - "go.*"
|
||||||
|
|
|
@ -4,8 +4,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn install --frozen-lockfile
|
- yarn install --frozen-lockfile
|
||||||
when:
|
# when:
|
||||||
path: "web/**"
|
# path: "web/**"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
group: test
|
group: test
|
||||||
|
@ -13,8 +13,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn lint
|
- yarn lint
|
||||||
when:
|
# when:
|
||||||
path: "web/**"
|
# path: "web/**"
|
||||||
|
|
||||||
formatcheck:
|
formatcheck:
|
||||||
group: test
|
group: test
|
||||||
|
@ -22,8 +22,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn formatcheck
|
- yarn formatcheck
|
||||||
when:
|
# when:
|
||||||
path: "web/**"
|
# path: "web/**"
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
group: test
|
group: test
|
||||||
|
@ -31,8 +31,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn typecheck
|
- yarn typecheck
|
||||||
when:
|
# when:
|
||||||
path: "web/**"
|
# path: "web/**"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
group: test
|
group: test
|
||||||
|
@ -40,6 +40,6 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
- cd web/
|
||||||
- yarn test
|
- yarn test
|
||||||
when:
|
# when:
|
||||||
path: "web/**"
|
# path: "web/**"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue