Woodpecker CI plugin for publishing artifacts to Amazon S3 compatible object storage https://woodpecker-ci.org/plugins/s3
  • Go 90.4%
  • Makefile 6.2%
  • Nix 3.4%
Find a file
woodpecker-bot b4f7089ad7
All checks were successful
ci/woodpecker/push/release-helper Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful
chore(deps): update docker.io/woodpeckerci/plugin-ready-release-go docker tag to v4.1.1 (#360)
Reviewed-on: #360
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2026-04-18 07:54:10 +02:00
.woodpecker chore(deps): update docker.io/woodpeckerci/plugin-ready-release-go docker tag to v4.1.1 (#360) 2026-04-18 07:54:10 +02:00
.gitignore ci: adapt new schema 2022-05-18 16:24:40 +02:00
.golangci.yml Migrate to golangci-lint v2 and improve error log (#249) 2025-04-24 14:23:53 +00:00
.hadolint.yml Add precommit (#54) 2023-12-02 16:43:01 +01:00
.markdownlint.yaml Add precommit (#54) 2023-12-02 16:43:01 +01:00
.pre-commit-config.yaml chore(deps): update pre-commit hook golangci/golangci-lint to v2.2.1 2025-06-29 21:03:43 +00:00
.prettierrc Add precommit (#54) 2023-12-02 16:43:01 +01:00
CHANGELOG.md 🎉 Release 1.5.3 (#303) 2026-01-10 01:14:37 +01:00
Dockerfile.multiarch chore(deps): update golang docker tag to v1.26 (#340) 2026-02-15 12:51:54 +01:00
docs.md Update go module name (#329) 2026-01-10 01:10:54 +01:00
flake.lock Add nix flake (#187) 2024-06-17 18:19:20 +02:00
flake.nix Add nix flake (#187) 2024-06-17 18:19:20 +02:00
go.mod fix(deps): update aws-sdk-go-v2 monorepo (#361) 2026-04-18 03:22:47 +02:00
go.sum fix(deps): update aws-sdk-go-v2 monorepo (#361) 2026-04-18 03:22:47 +02:00
LICENSE Add precommit (#54) 2023-12-02 16:43:01 +01:00
main.go Allow specifying KMS key (#277) 2025-07-12 07:36:49 +02:00
Makefile Enable golangci-lint (#275) 2025-07-10 16:05:24 +02:00
plugin.go switch pathbuilding to / instead of os-specific for upload-target (#285) 2025-08-09 08:45:30 +02:00
README.md Update go module name (#329) 2026-01-10 01:10:54 +01:00
renovate.json Migrate AWS SDK to v2 (#273) 2025-07-10 17:22:43 +02:00
s3.svg Add icon (#86) 2024-01-13 11:47:19 +01:00

plugin-s3

Build Status Go Report Card GoDoc Docker pulls License: Apache-2.0

Woodpecker CI plugin for publishing artifacts to Amazon S3 compatible object storage

Build

Build the binary with the following commands:

go build
go test

Docker

Build the Docker image with the following commands:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo
docker build --rm=true -t woodpeckerci/plugin-s3 .

Please note incorrectly building the image for the correct x64 linux and with CGO disabled will result in an error when running the Docker image:

docker: Error response from daemon: Container command
'/bin/plugin-s3' not found or does not exist..

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_SOURCE=<source> \
  -e PLUGIN_TARGET=<target> \
  -e PLUGIN_BUCKET=<bucket> \
  -e AWS_ACCESS_KEY_ID=<token> \
  -e AWS_SECRET_ACCESS_KEY=<secret> \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  woodpeckerci/plugin-s3 --dry-run