Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support github deploy task #3512

Merged
merged 16 commits into from
May 2, 2024
Merged

Conversation

fernandrone
Copy link
Contributor

@qwerty287 qwerty287 added this to the 2.5.0 milestone Mar 20, 2024
@qwerty287 qwerty287 added forge/github github forge related enhancement improve existing features labels Mar 20, 2024
@woodpecker-bot
Copy link
Collaborator

woodpecker-bot commented Mar 20, 2024

Deployment of preview was torn down

@fernandrone fernandrone marked this pull request as ready for review March 25, 2024 19:51
@fernandrone
Copy link
Contributor Author

fernandrone commented Mar 25, 2024

I've manually this on top of Woodpecker 2.3 on our internal infrastructure and it's working as I'd expect.

Let me know in case there's some manual tests I should be doing or anything else I could do to help get it validated.

@qwerty287
Copy link
Contributor

Code looks good now, I'll try to test later.

@qwerty287
Copy link
Contributor

Can you update your branch or allow access from maintainers?

@fernandrone
Copy link
Contributor Author

Updated 👍🏻

Copy link
Contributor

@qwerty287 qwerty287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work. Just two outdated links in schema.

@anbraten Can you check your review again?

pipeline/frontend/yaml/linter/schema/schema.json Outdated Show resolved Hide resolved
pipeline/frontend/yaml/linter/schema/schema.json Outdated Show resolved Hide resolved
@qwerty287
Copy link
Contributor

@anbraten Can you check your review again?

@fernandrone Can you update the branch?

@anbraten anbraten changed the title feat: support github deploy task Support github deploy task Apr 16, 2024
@qwerty287
Copy link
Contributor

@fernandrone maybe you missed it, but we decided to not add separate when branches for task and the one for environment will get deprecated, you should use env vars instead. See #3512 (comment) and following comments

@fernandrone
Copy link
Contributor Author

fernandrone commented Apr 19, 2024

Sorry, I had seen the discussion but I thought you were talking about hypotheticals 😅 ("if we were to remove the environment key, then that would be a breaking change...") yeah, sure, I should be able to remote the task key during the weekend.

@pat-s
Copy link
Contributor

pat-s commented Apr 30, 2024

@fernandrone To be able to make it into 2.5.0 (which is already overdue) the open points should be resolved within the next days.

@fernandrone
Copy link
Contributor Author

Here it is -- sorry for the delay. I'm not 100% sure I removed the right ammount of code. I may be able to ship and validate this change in a test environment by Friday but if you also have the means to validate this quickly on your side that'd be appreciated.

@qwerty287 qwerty287 enabled auto-merge (squash) May 2, 2024 16:50
@qwerty287 qwerty287 merged commit e6bda2c into woodpecker-ci:main May 2, 2024
6 of 7 checks passed
@woodpecker-bot woodpecker-bot mentioned this pull request May 2, 2024
1 task
@fernandrone fernandrone deleted the woodpecker branch May 2, 2024 18:36
6543 pushed a commit to 6543-forks/woodpecker that referenced this pull request Sep 5, 2024
@Dan6erbond
Copy link

I landed here from the Here is Woodpecker 2.5.0 blog post and while I really like this feature, it's exactly what I needed to allow us to switch from Drone to Woodpecker, it would really be great if the docs also explain a bit clearer how deployments work! The Forges overview also specifically seems to imply that deployments aren't available with Gitea, and I couldn't find docs describing the manual deployment strategy via the UI so I had to run an instance myself just to figure this out.

To be clear, the Workflow syntax page mentions deployment as an event, but even there it claims "only available for GitHub" which doesn't actually seem to be true given the deploy UI:

image

@pat-s
Copy link
Contributor

pat-s commented Oct 29, 2024

Gitea indeed doesn't support the "deployment" even but this is different to "deployments" for pipelines/worfklows. The former is an event, the latter is a "woodpecker feature". I also fell over this a few months ago and was confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve existing features forge/github github forge related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GitHub Deployments 'task' parameter
6 participants