Woodpecker is a community fork of the Drone CI system.
Find a file
gapanyc 547f5dea35
Init CI_COMMIT_TAG if commit ref is a tag (#2934)
When triggering a deployment event on an existing pipeline, there is no
way to get the tag used to trigger the parent pipeline, even if this
parent was a tag event.

In our company CI/CD current setup with drone, we use the tag event to
trigger a kaniko image build step, using the git tag as an image tag,
and the deployment/promotion step to effectively deploy this image using
the tag reference in our cluster. This is the only point blocking us to
completely switch to woodpecker and get rid of drone...

What's done:
- changed the metadata environ() method to populate CI_COMMIT_TAG env
var if commit ref starts with /refs/tags (like it's done in drone),
independently of event type EventTag.

Please let me know if I'm wrong, I will happily contribute in this nice
project.

---------

Co-authored-by: Christian Gapany <christian.gapany@netplus.pro>
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-12-12 18:05:06 +02:00
.github Update renovate schedule & use central config repo (#2597) 2023-10-17 09:23:13 +02:00
.vscode local backend make cmd log output similar to other shells (#2678) 2023-11-01 11:49:36 +01:00
.woodpecker Update docker.io/techknowlogick/xgo Docker tag to go-1.21.5 (#2926) 2023-12-11 08:26:21 +01:00
agent Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
cli Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
cmd Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
contrib/woodpecker-test-repo/.woodpecker Add workflow version (#2476) 2023-11-06 01:37:02 +01:00
docker Fix pinned alpine package versions (#2713) 2023-11-03 15:41:44 +01:00
docs Update 20-kubernetes.md (#2927) 2023-12-11 14:03:05 +01:00
nfpm Add prettier (#2600) 2023-10-24 14:42:05 +02:00
pipeline Init CI_COMMIT_TAG if commit ref is a tag (#2934) 2023-12-12 18:05:06 +02:00
server Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
shared Bump default clone image version to 2.4.0 (#2852) 2023-11-21 02:15:08 +01:00
version gofumpt -w -l -extra . (#661) 2022-01-05 21:50:23 +01:00
web Lock file maintenance (#2910) 2023-12-06 15:05:49 +01:00
woodpecker-go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
.changelog.yml Add prettier (#2600) 2023-10-24 14:42:05 +02:00
.ecrc Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
.editorconfig Use editorconfig-checker (#982) 2022-06-17 12:03:34 +02:00
.gitattributes Fix "check_swagger" step (#2024) 2023-07-20 22:12:32 +02:00
.gitignore Use consistent woodpecker color scheme (#2003) 2023-08-02 09:09:12 +02:00
.gitpod.yml Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
.golangci.yml Add linting for any (#2893) 2023-11-29 20:21:18 +01:00
.hadolint.yml Use pre-commit (#2650) 2023-10-28 21:58:59 +02:00
.markdownlint.yaml fix(deps): update docker to v24 (#2675) 2023-10-31 12:33:27 +01:00
.pre-commit-config.yaml Add prettier pre-commit hook (#2762) 2023-11-19 22:47:14 +01:00
.prettierignore Add prettier (#2600) 2023-10-24 14:42:05 +02:00
.prettierrc Add prettier (#2600) 2023-10-24 14:42:05 +02:00
CHANGELOG.md 🎉 Release 2.0.0 (#2805) 2023-11-23 17:28:08 +01:00
CONTRIBUTING.md Add release documentation to CONTRIBUTING (#2917) 2023-12-07 18:20:22 +01:00
docker-compose.example.yml Add docs about Gitea on same host and update docker-compose example (#2752) 2023-11-11 12:38:21 +01:00
docker-compose.gitpod.yml Update postgres Docker tag to v16.1 (#2842) 2023-11-19 07:54:15 +01:00
go.mod Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
go.sum Update golang (packages) (#2904) 2023-12-04 20:53:46 +01:00
LICENSE Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
Makefile Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
README.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00
release-config.ts Add release helper (#1976) 2023-09-07 17:17:17 +02:00
SECURITY.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00

Woodpecker

Woodpecker


Translation status


Woodpecker is a community fork of the Drone CI system.

woodpecker

🫶 Support

Please consider to donate and become a backer. 🙏 [Become a backer]

📖 Documentation

https://woodpecker-ci.org/

Contribute

See Contributing Guide

Open in Gitpod

📣 Translate

We use an own Weblate instance at translate.woodpecker-ci.org.

Translation status

👋 Who uses Woodpecker?

Woodpecker is used by itself multiple well-known companies, organizations like Codeberg, hobbyist and many others.

Leave a comment if you're using it as well.

Also consider using the topic WoodpeckerCI in your repository, so others can learn from your config and use the hashtag #WoodpeckerCI when talking about the project on social media!

Here are some places where people mention Woodpecker:

Stars over time

Stargazers over time

License

Woodpecker is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.

Files under the docs/ folder are licensed under Creative Commons Attribution-ShareAlike 4.0 International Public License.