Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iJamesPHP's avatar

Deploy from a specific git tag?

Hi Laracasts,

If I create a release of my repo tagged 'v1.0', how do I set envoyer to clone this specific release as opposed to the most recent commit.

Or is it just a case of doing everything for that release and then disabling auto deploy and not pressing deploy?

0 likes
4 replies
renedekat's avatar
Level 14

@iJamesPHP With Envoyer you set a branch to be deployed. You can tag releases, but your master should always be deployable, having the latest code. You do your development stuff in different branches, but once merged to master it should be tested and safe to deploy.

You can't specify a release AFAIK.

iJamesPHP's avatar

@renedekat Ah okay, my plan was to have a developer.* version of my site which would auto deploy master from the repo for testing etc. and when everything was good I would mark as a release and deploy that release from envoyer.

I have worked out a workaround though,

Thanks

renedekat's avatar

@iJamesPHP Yes, you can create a developer branch in your repo and use that to deploy from. Just not from tags/released, only branches.

EliasSoares's avatar

@iJamesPHP

Also you can turn off auto deploy on Envoyer, and use a git hook to trigger the deploy url on tag creation! :)

Go on repository settings, webhook, add webhook.

Fill the payload url with your envoyer deploy url, the check "let me select individual events", them choose only "release".

This should do the trick! :)

1 like

Please or to participate in this conversation.