Skip to content

Commit 2c1bf1b

Browse files
authored
Merge pull request #173 from Felixoid/master
Create autobuilds for ghcr.io/lomik/graphite-clickhouse
2 parents 2c06b1e + eeb5f7a commit 2c1bf1b

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/docker.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docker images
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: [ 'v*' ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
docker:
12+
name: Build image
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
- name: Docker meta
18+
id: meta
19+
uses: docker/metadata-action@v3
20+
with:
21+
images: ghcr.io/${{ github.repository }}
22+
# create latest tag for branch events
23+
flavor: |
24+
latest=${{ github.event_name == 'push' && github.ref_type == 'branch' }}
25+
tags: |
26+
type=ref,event=branch
27+
type=ref,event=pr
28+
type=semver,pattern={{version}}
29+
type=semver,pattern={{major}}.{{minor}}
30+
type=semver,pattern={{major}}.{{minor}}.{{patch}}
31+
- name: Login to DockerHub
32+
if: github.event_name != 'pull_request'
33+
uses: docker/login-action@v1
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
- name: Build and push
39+
id: docker_build
40+
uses: docker/build-push-action@v2
41+
with:
42+
# push for non-pr events
43+
push: ${{ github.event_name != 'pull_request' }}
44+
context: .
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}
47+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Gray components are optional or alternative
1212
## TL;DR
1313
[Preconfigured docker-compose](https://github.com/lomik/graphite-clickhouse-tldr)
1414

15+
### Docker
16+
Docker images are available on [packages](https://github.com/lomik/graphite-clickhouse/pkgs/container/graphite-clickhouse) page.
17+
1518
## Compatibility
1619
- [x] [graphite-web 1.1.0](https://github.com/graphite-project/graphite-web)
1720
- [x] [graphite-web 0.9.15](https://github.com/graphite-project/graphite-web/tree/0.9.15)

0 commit comments

Comments
 (0)