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

Docker Build Pipeline with Tags #103

Merged
merged 36 commits into from
Jan 30, 2024
Merged

Docker Build Pipeline with Tags #103

merged 36 commits into from
Jan 30, 2024

Conversation

gimse
Copy link
Contributor

@gimse gimse commented Dec 2, 2023

Making Github Action that builds docker image with "version number" and "latest".
For example ghcr.io/protomaps/go-pmtiles:v0.0.7 & ghcr.io/gimse/go-pmtiles:latest

It still builds ghcr.io/protomaps/go-pmtiles:main on push to main.

It also run the pipeline on pull requests, but do not push to the registry.

@gimse
Copy link
Contributor Author

gimse commented Dec 2, 2023

Example on how it looks in to container registry :

image

.github/workflows/publish.yml Outdated Show resolved Hide resolved
- 'main'
tags:
- 'v*'
pull_request:
Copy link
Member

Choose a reason for hiding this comment

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

Is this pull_request key necessary - shouldn't it be canceled out by push: ${{ github.event_name != 'pull_request' }} on line 32?

@bdon
Copy link
Member

bdon commented Dec 18, 2023

Tagging @fraank original author of the GitHub action - does this PR work for Docker container usage?

@bdon bdon merged commit 85a73a5 into protomaps:main Jan 30, 2024
1 check passed
@bdon
Copy link
Member

bdon commented Jan 30, 2024

Merging this for now, will test out the tagged versions on GHCR, thanks!

@gimse
Copy link
Contributor Author

gimse commented Jun 18, 2024

Thanks :)

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.

2 participants