pesos / grofer

A system and resource monitoring tool written in Golang!
Apache License 2.0
352 stars 52 forks source link

Add Dockerfile pt. 2 #124

Closed Samyak2 closed 3 years ago

Samyak2 commented 3 years ago

Description

Fixes #101

Based on #106

Type of change

Please delete options that are not relevant.

Checklist:

TODO

Samyak2 commented 3 years ago
unsupported: GitHub Container Registry is currently in read only mode. Image pushes are disallowed at this time.

Looks like the container registry is under maintenance currently :(

Samyak2 commented 3 years ago

It wooooorks!

https://github.com/orgs/pesos/packages/container/package/grofer

MadhavJivrajani commented 3 years ago

WOOOHOOOOOOO

Samyak2 commented 3 years ago

I think this is ready now. I made a few changes

Gituser143 commented 3 years ago

@Samyak2 you might want to update the branch :P

Samyak2 commented 3 years ago

I'll rebase it on main

Samyak2 commented 3 years ago

Is there anything left to do here?

MadhavJivrajani commented 3 years ago

Everything looks good to me, just to be sure: this image build will be triggered only when a new release comes out?

Samyak2 commented 3 years ago

No. This is how it will work:

So, pulling ghcr.io/pesos/grofer would give the image from the main branch (since that is tagged as latest). This, if I'm not wrong, is similar to go get which pulls from the default branch.

MadhavJivrajani commented 3 years ago

Sounds good Could you add 1-2 lines in the README along the lines of what latest means in our case and if they want to use a particular version, how they can do it?

Samyak2 commented 3 years ago

I've added a couple of lines on that.

A few things that should be noted here:

Samyak2 commented 3 years ago

^ Rebased on main

Is there anything else to do here?

Gituser143 commented 3 years ago

@Samyak2 Changes look good to me! But do workflows trigger on commits? I'm asking because I don't see one for this (or I might not be looking properly, plis help :P).

Samyak2 commented 3 years ago

@Samyak2 Changes look good to me! But do workflows trigger on commits? I'm asking because I don't see one for this (or I might not be looking properly, plis help :P).

@Gituser143 yes, but this one is run only on commits to the main branch and not on PRs. It can be enabled on PRs too, but if they aren't from an internal branch of this repo (pesos/grofer), it will just give a permission denied error. Also, it's run on push rather than commits. So if multiple commits are pushed at a time, it will run only once for the latest commit.