-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a7efff9
testing buildx
gimse 50e14fc
removing old job
gimse f50cb2c
test
gimse 176a70f
moving uses:
gimse 7f58676
name: Set up QEMU
gimse 37c1038
- name: Set up Docker Buildx
gimse 72c15a5
login-action@v3
gimse dbfcc2e
docker/build-push-action@v5
gimse e7e1d43
removing step
gimse 5085cc9
tags: ghcr.io/gimse/go-pmtiles/main:0.0.1
gimse 7db167e
removing branch name
gimse 69b4342
platforms: linux/amd64,linux/arm/v7,linux/arm64
gimse 36070bd
platforms: linux/amd64
gimse 4436adb
removing annotation
gimse 214b32c
testing with linux/arm/v7,linux/arm64
gimse 4719fd3
removing Checkout step
gimse e4b4b40
adding back Checkout
gimse 1380e57
removing step names
gimse 055b862
only building inux/amd64
gimse 202dbe1
adding back annotation
gimse 46755ed
checkout@v4
gimse 0bb2f7a
username: ${{ github.actor }}
gimse 90929f7
docker/metadata-action
gimse d91285a
tags: ${{ steps.meta.outputs.tags }}
gimse 01da775
updating on
gimse 9516e2e
removing step name
gimse 89bef89
removing outputs
gimse d1f28ff
using ${{ github.repository }}
gimse b24b2de
removing file: ./Dockerfile
gimse 77985d4
docker-build
gimse 1cdadb2
removing qemu-action
gimse 9d41aff
outputs: annotation-index.org
gimse 9a175f1
outputs: type=image,name=target
gimse 0568abb
protomaps
gimse 3ca4a40
removing setup-qemu-action@v3 and setup-buildx-ac
gimse 414882a
adding newline at end of yml
gimse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
name: publish | ||
|
||
on: [push] | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
main_push_to_registry: | ||
name: Push Docker image to GitHub Packages as with Tag 'latest' | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: Push to GitHub Packages | ||
uses: docker/build-push-action@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: docker/metadata-action@v5 | ||
id: meta | ||
with: | ||
context: ./ | ||
dockerfile: ./Dockerfile | ||
images: ghcr.io/${{ github.repository }} | ||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
repository: protomaps/go-pmtiles | ||
tags: main | ||
- uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=See https://github.com/protomaps/go-pmtiles for more info. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 bypush: ${{ github.event_name != 'pull_request' }}
on line 32?