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

Added a quick deployment solution based on Docker #4

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

Conversation

Ccccraz
Copy link

@Ccccraz Ccccraz commented Mar 14, 2024

The main changes are as follows:

  • Removed the old version of the make-test action, as Ubuntu 18.04 is no longer supported by GitHub Actions
  • Added support for docker
  • Added a new CI/CD pipeline for automatically building, testing, and publishing to Docker Hub and creating GitHub releases

Note

Before merging this request, if you want to publish to docker hub, you need to set a github secret variable to store your username and password for docker hub, as well as cteate a docker repository to store your images

Your secret variable will be used in .github/workflows/buildAndRelease.yml

As shown in the example below, my username and password are stored as DOCKER_USERNAME and DOCKER_PASSWORD, respectively

- name: Log in to Docker Hub
  uses: docker/login-action@v3
  with:
    username: ${{ secrets.DOCKER_USERNAME }}
    password: ${{ secrets.DOCKER_PASSWORD }}

for more infomation, see the doc-github secret

@Ccccraz
Copy link
Author

Ccccraz commented Mar 15, 2024

All changes have been tested, you can see my release page and 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