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
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a7efff9
testing buildx
gimse Dec 2, 2023
50e14fc
removing old job
gimse Dec 2, 2023
f50cb2c
test
gimse Dec 2, 2023
176a70f
moving uses:
gimse Dec 2, 2023
7f58676
name: Set up QEMU
gimse Dec 2, 2023
37c1038
- name: Set up Docker Buildx
gimse Dec 2, 2023
72c15a5
login-action@v3
gimse Dec 2, 2023
dbfcc2e
docker/build-push-action@v5
gimse Dec 2, 2023
e7e1d43
removing step
gimse Dec 2, 2023
5085cc9
tags: ghcr.io/gimse/go-pmtiles/main:0.0.1
gimse Dec 2, 2023
7db167e
removing branch name
gimse Dec 2, 2023
69b4342
platforms: linux/amd64,linux/arm/v7,linux/arm64
gimse Dec 2, 2023
36070bd
platforms: linux/amd64
gimse Dec 2, 2023
4436adb
removing annotation
gimse Dec 2, 2023
214b32c
testing with linux/arm/v7,linux/arm64
gimse Dec 2, 2023
4719fd3
removing Checkout step
gimse Dec 2, 2023
e4b4b40
adding back Checkout
gimse Dec 2, 2023
1380e57
removing step names
gimse Dec 2, 2023
055b862
only building inux/amd64
gimse Dec 2, 2023
202dbe1
adding back annotation
gimse Dec 2, 2023
46755ed
checkout@v4
gimse Dec 2, 2023
0bb2f7a
username: ${{ github.actor }}
gimse Dec 2, 2023
90929f7
docker/metadata-action
gimse Dec 2, 2023
d91285a
tags: ${{ steps.meta.outputs.tags }}
gimse Dec 2, 2023
01da775
updating on
gimse Dec 2, 2023
9516e2e
removing step name
gimse Dec 2, 2023
89bef89
removing outputs
gimse Dec 2, 2023
d1f28ff
using ${{ github.repository }}
gimse Dec 2, 2023
b24b2de
removing file: ./Dockerfile
gimse Dec 2, 2023
77985d4
docker-build
gimse Dec 2, 2023
1cdadb2
removing qemu-action
gimse Dec 2, 2023
9d41aff
outputs: annotation-index.org
gimse Dec 2, 2023
9a175f1
outputs: type=image,name=target
gimse Dec 2, 2023
0568abb
protomaps
gimse Dec 2, 2023
3ca4a40
removing setup-qemu-action@v3 and setup-buildx-ac
gimse Dec 7, 2023
414882a
adding newline at end of yml
gimse Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions .github/workflows/publish.yml
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:
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?

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.