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

Automatically build and publish container images to Github Container Repo #23

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

Conversation

leonardehrenfried
Copy link

@leonardehrenfried leonardehrenfried commented Feb 15, 2024

Just like the PR over at pfaedle, this one automatically builds container images for this repo and deploys them to Github Container Repo.

You can see an example here: https://github.com/leonardehrenfried/gtfstidy/pkgs/container/gtfstidy

A complete example of how to use it would be:

wget https://www3.septa.org/developer/google_bus.zip
docker run --rm -v `pwd`:/app ghcr.io/leonardehrenfried/gtfstidy:latest -S -o /app/tidy.gtfs.zip /app/google_bus.zip

Do you want me to add that to the documentation?

RUN go mod tidy
RUN go build .

FROM docker.io/debian:stable-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add OCI annotations, to provide helpful machine-readable infos to a variety of tools.

Suggested change
FROM docker.io/debian:stable-slim
FROM docker.io/debian:stable-slim
LABEL org.opencontainers.image.title="oxygen-xml"
LABEL org.opencontainers.image.description="A tool for checking, sanitizing and minimizing GTFS feeds."
LABEL org.opencontainers.image.authors="Patrick Brosi <info@patrickbrosi.de>"
LABEL org.opencontainers.image.source="https://github.com/patrickbr/gtfstidy"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker/metadata-action actually already adds most (all?) of these labels from the GitHub metadata.

Can you check the pfaedle image (which uses the same process) to see if you're missing something? https://github.com/ad-freiburg/pfaedle/pkgs/container/pfaedle

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't know. Consider this thread irrelevant then.

derhuerst added a commit to public-transport/transitous that referenced this pull request Feb 26, 2024
@leonardehrenfried
Copy link
Author

Would it be possible to get a review for this?

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.

None yet

2 participants