Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Create deploy action to make it easier to publish #629

Merged
merged 4 commits into from
Jun 19, 2021

Conversation

quantumfusion
Copy link
Contributor

No description provided.

@render
Copy link

render bot commented May 25, 2021

Copy link
Contributor

@scottnuma scottnuma left a comment

Choose a reason for hiding this comment

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

looks good to me

@dwai213
Copy link
Contributor

dwai213 commented May 27, 2021

🎉

# yamllint disable-line rule:truthy
on:
tags:
- release
Copy link
Member

@AVSurfer123 AVSurfer123 Jun 2, 2021

Choose a reason for hiding this comment

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

Shouldn't this be changed to any pushes to master, so it auto deploys? I also don't see an option for tags under on in the Workflow YAML specification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will double-check on the spec. Pretty sure I saw it had support for tags, but its not something I have much experience with.

Regarding whether it should be master, the though process was that creating a tag is fairly simple to do via the UI and would allow a bit more control on when a release to prod occurs. If we're going to strongly require folks to create PRs that get reviewed and have to be approved and therefore master is always production ready, I'm fine with that. I just wanted to get something that was easier to control in first so that we can test the flow with a staging version on our production server.

Copy link
Member

Choose a reason for hiding this comment

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

Currently every PR requires 1 approval to be merged so hopefully they are production ready. Regardless if we want to be safe, I would set it up so that only on push to master, the dokku deploys the updates to the staging website. Then have a separate job that on a specific tag, will deploy that commit to the production website. So you can see what's on master in the staging website and then when satisfied can manually triger a deploy to prod.

Copy link
Member

Choose a reason for hiding this comment

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

I can also implement this if you are busy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It sounds like we're currently on the same page. This particular workflow is intended to be an experiment to ensure the configurations are correct for the staging environment. It should then be trivial to make an updated version for production.

Copy link
Member

Choose a reason for hiding this comment

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

Ok I see, this isn't the final version.

fix up the triggers to follow format as explained in this Issue: actions/runner#1007
@AVSurfer123 AVSurfer123 merged commit aa1c2d2 into master Jun 19, 2021
@AVSurfer123 AVSurfer123 deleted the github-dokku-deploy-action branch June 19, 2021 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants