Skip to content

Commit

Permalink
tmp: fix to make ci run agian
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed May 20, 2022
1 parent e2e094c commit e172b66
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 162 deletions.
140 changes: 70 additions & 70 deletions .woodpecker/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,95 +9,95 @@ pipeline:
- cd web/
- yarn install --frozen-lockfile
- yarn build
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

build-server:
group: build
image: golang:1.17
commands:
- make release-server
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

build-agent:
group: build
image: golang:1.17
commands:
- make release-agent
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

build-cli:
group: build
image: golang:1.17
commands:
- make release-cli
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

build-deb-rpm:
group: bundle
image: golang:1.17
commands:
- make bundle
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

checksums:
image: golang:1.17
commands:
- make release-checksums
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}

Expand All @@ -106,16 +106,16 @@ pipeline:
commands:
- ls -la dist/*.*
- cat dist/checksums.txt
when:
path:
# related config files
- ".woodpecker/binaries.yml"
- "nfpm/*.yml"
# go source code
- "**/*.go"
- "go.*"
# web source code
- "web/**"
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"

release:
image: plugins/github-release
Expand Down
18 changes: 9 additions & 9 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pipeline:
- yarn build
when:
event: [push, pull_request]
path:
- "docs/**"
- ".woodpecker/docs.yml"
# path:
# - "docs/**"
# - ".woodpecker/docs.yml"

deploy-preview:
image: woodpeckerci/plugin-surge-preview:next
Expand All @@ -23,9 +23,9 @@ pipeline:
from_secret: GITHUB_TOKEN_SURGE
when:
event: pull_request
path:
- "docs/**"
- ".woodpecker/docs.yml"
# path:
# - "docs/**"
# - ".woodpecker/docs.yml"
# TODO: add step to remove preview again after PR is closed (waiting for #286)

deploy:
Expand All @@ -52,7 +52,7 @@ pipeline:
when:
event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
path:
- "docs/**"
- ".woodpecker/docs.yml"
# path:
# - "docs/**"
# - ".woodpecker/docs.yml"

Loading

0 comments on commit e172b66

Please sign in to comment.