Skip to content

Commit

Permalink
Use depends_on (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 committed Jan 1, 2024
1 parent e6160be commit be854a0
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .woodpecker/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,49 @@ steps:
- go mod vendor

lint:
group: test
image: *golang
depends_on: vendor
commands:
- apk add make
- make vet
- make formatcheck
when:
- event: pull_request
- event: push
branch: renovate/*

test:
group: test
image: *golang
depends_on: vendor
commands:
- apk add make git-lfs
- make test
when:
- event: pull_request
- event: push
branch: renovate/*

build-dryrun:
image: woodpeckerci/plugin-docker-buildx:2.2.1
depends_on:
- lint
- test
settings:
repo: test/repo
dockerfile: ./docker/Dockerfile.multiarch
dry_run: true
platforms: *platforms
tags: latest
when:
event: pull_request
- event: pull_request
- event: push
branch: renovate/*

release-next:
image: woodpeckerci/plugin-docker-buildx:2.2.1
depends_on:
- lint
- test
settings:
repo: *publish_repos
dockerfile: ./docker/Dockerfile.multiarch
Expand Down Expand Up @@ -96,4 +112,6 @@ when:
- event: pull_request
- event: tag
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- renovate/*

0 comments on commit be854a0

Please sign in to comment.