8000 Add release helper and structure workflow files by pat-s · Pull Request #31 · woodpecker-ci/plugin-s3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Add release helper and structure workflow files #31

Merged
merged 6 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
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
31 changes: 4 additions & 27 deletions .woodpecker.yml → .woodpecker/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,11 @@
depends_on: [test]

variables:
- &golang 'golang:1.21'

steps:
lint:
group: test
image: *golang
commands:
- make vet
- make formatcheck

test:
group: test
image: *golang
commands:
- make test

build:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile.multiarch
dry_run: true
repo: woodpeckerci/plugin-s3
tags: latest
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,windows/amd64,darwin/amd64,darwin/arm64,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: pull_request

publish-next:
image: woodpeckerci/plugin-docker-buildx
image: woodpeckerci/plugin-docker-buildx:2.1.0
settings:
dockerfile: Dockerfile.multiarch
repo: woodpeckerci/plugin-s3
Expand All @@ -40,7 +17,7 @@ steps:
event: push

publish-tag:
image: woodpeckerci/plugin-docker-buildx
image: woodpeckerci/plugin-docker-buildx:2.1.0
settings:
dockerfile: Dockerfile.multiarch
repo: woodpeckerci/plugin-s3
Expand Down
13 changes: 13 additions & 0 deletions .woodpecker/release-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
release-helper:
image: woodpeckerci/plugin-ready-release-go:0.6.1
settings:
release_branch: ${CI_REPO_DEFAULT_BRANCH}
forge_type: github
git_email: woodpecker-bot@obermui.de
github_token:
from_secret: GITHUB_TOKEN

when:
event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
31 changes: 31 additions & 0 deletions .woodpecker/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
variables:
- &golang 'golang:1.21'

when:
- event: pull_request
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
lint:
group: test
image: *golang
commands:
- make vet
- make formatcheck

test:
group: test
image: *golang
commands:
- make test

build:
image: woodpeckerci/plugin-docker-buildx:2.1.0
settings:
dockerfile: Dockerfile.multiarch
dry_run: true
repo: woodpeckerci/plugin-s3
tags: latest
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,windows/amd64,darwin/amd64,darwin/arm64,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64
0