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

Add GitHub Actions workflow for auto deployments #81

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Oct 27, 2019

Add a GitHub Actions workflow to automatically deploy the gallery when pushing to master.

This is a very simple fix #57, but good enough for now. We can build on top of that afterwards, or even move the deploy script to the voila-gallery.org-deploy repo.

This is what the workflow does:

  • SSH into the existing instance
  • Reinstall the gallery package
  • Restart JupyterHub
  • Test it's up again after 5 seconds

@jtpio
Copy link
Member Author

jtpio commented Oct 27, 2019

@SylvainCorlay @maartenbreddels I need admin access on this repo to add the secrets:

image

@jtpio
Copy link
Member Author

jtpio commented Oct 27, 2019

Example runs in this fork PR (used for testing, to be deleted later): jtpio#1

@SylvainCorlay
Copy link
Member

@jtpio you now have admin priviledges to this repository.

@jtpio
Copy link
Member Author

jtpio commented Oct 28, 2019

@SylvainCorlay thanks!

@jtpio
Copy link
Member Author

jtpio commented Oct 28, 2019

Secrets have been added.

I think we can press the green button and see how it goes.

@jtpio
Copy link
Member Author

jtpio commented Oct 28, 2019

As briefly mentioned in the first post of the issue, this is a bit of a "poor man's solution" to doing deployments (SSHing into a machine). But it's a start.

Also to give some context on why using GitHub actions:

  • There was no CI for the gallery before (starting from scratch)
  • Actions are easily accessible on GitHub, no extra application to install
  • The SSH action (appleboy/ssh-action) is exactly what we need here

@jtpio jtpio added the deployment Issues related to deploying the gallery label Oct 28, 2019
@jtpio jtpio merged commit f892720 into master Oct 28, 2019
@jtpio jtpio deleted the auto-deploy branch October 28, 2019 16:13
@jtpio
Copy link
Member Author

jtpio commented Oct 28, 2019

The latest changes (Jupyter logo added last Friday) that were not deployed are now live:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Issues related to deploying the gallery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automated deployment
2 participants