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 Dockerfile and CI #36

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Add Dockerfile and CI #36

merged 2 commits into from
Mar 11, 2024

Conversation

duskmoon314
Copy link
Contributor

TLDR: Add a Dockerfile and adjust CI to build the image.

Changes:

  • Add a Dockerfile to build an image based on scratch. This image can be used to run the app on a server without configuring systemd or other init systems (e.g., some commercial NAS devices may not support systemd).
  • Add two GitHub Action jobs to build and push this image to GitHub Container Registry.
  • Update several actions to the latest version to emit GitHub Action's warnings.
  • Use the gh cli tool instead of the archived actions/create-release and hub, which was removed on 2023-10-02 (See [All OS] hub utility will be removed on October 2)

Add a Dockerfile to build an image for GoAuthing, which can be used to
run the app on a server without configuring systemd or other init
systems (e.g. Some commercial NAS devices may not support systemd).

Add two GitHub Actions jobs to build and push the Docker image to
GitHub Container Registry.
@jiegec
Copy link
Collaborator

jiegec commented Mar 11, 2024

@z4yx I have no permission to setup ghcr registry for this repo, please have a look.

@z4yx z4yx merged commit e42c2fd into z4yx:master Mar 11, 2024
2 checks passed
@z4yx
Copy link
Owner

z4yx commented Mar 11, 2024

Where is the entrance of creating ghcr registry?

@duskmoon314
Copy link
Contributor Author

I think GitHub will automatically create the link packages in the sidebar once an image is released. The image will be listed under https://github.com/z4yx?tab=packages. And it should cost nothing since this is a public repo.

In this PR, the image is created only when a release happens. I have tested push v0 to trigger a release in my fork. I don't remember config anything, but I might have configured something before.

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.

3 participants