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 CI, Docker, and auto releases #210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add CI, Docker, and auto releases #210

wants to merge 3 commits into from

Conversation

poma
Copy link

@poma poma commented Oct 29, 2020

It's more reliable to generate releases via CI rather than a local build.

I've added Github actions that will generate a release draft with zip file attached when a tag like v1.4.0 is pushed to the repository. It also generates and uploads release container to Docker hub.

Details:

  • build is triggered on push to any branch and on pull requests
  • at the moment build action only builds client, this is a good place to add tests and linter in the future
  • release action is triggered only when a version tag is pushed
  • release action will:
    • Build release zip file
    • Build and upload Docker container
    • Generate a Github release draft and attach release zip to it

Before merging:
To publish to Docker hub, it requires DOCKER_USERNAME and DOCKER_TOKEN to be set up. Just create account on docker hub, generate an access token, and then add 2 secrets in your repository settings.

I've also added build status shields to readme, and included package-lock.json into release (it's highly recommended to do so, and also use npm ci to install packages on users machine)

You can see CI in action in my fork poma/assistant-relay and pushed images on Docker hub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant