-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 1.71 KB
/
helper-clickhouse.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Clickhouse
on:
workflow_dispatch:
inputs:
clickhouse-ref:
required: true
description: Ref to checkout from cloudfuse-io/ClickHouse, should use clang-15 (e.g. v22.10.2.11-patch)
env:
AWS_ACCESS_KEY_ID: "${{ secrets.BBTOOL_KEY }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.BBTOOL_SECRET }}"
S3_BUILDS_BUCKET: "cloudfuse-builds"
S3_TEST_REPORTS_BUCKET: "cloudfuse-builds"
S3_URL: "https://s3.us-east-2.amazonaws.com"
jobs:
build:
name: clickhouse release
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
repository: 'cloudfuse-io/ClickHouse'
ref: ${{ github.event.inputs.clickhouse-ref }}
fetch-depth: 0
submodules: 'recursive'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
env:
AGENT_TOOLSDIRECTORY: /home/ubuntu/hostedtoolcache
- name: Pip install
run: pip install boto3 boto3 unidiff pygithub
- name: Build deb
run: |
cd tests/ci
python3 build_check.py "package_release"
- name: Build image
run: |
cd tests/ci
python3 docker_server.py --no-push-images --no-alpine --no-reports
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push imgage to ghcr
run: |
CLI_IMAGE="ghcr.io/${{ github.repository }}:clickhouse-${{ github.event.inputs.clickhouse-ref }}"
docker tag clickhouse/clickhouse-server:head-amd64 "$CLI_IMAGE"
docker push "$CLI_IMAGE"