Skip to content

Commit d43caad

Browse files
myttingtwou12031
mytting
authored andcommitted
update clickhouse plugin version
1 parent df70a45 commit d43caad

File tree

2 files changed

+50
-14
lines changed

2 files changed

+50
-14
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,19 @@ jobs:
7171
- uses: robinraju/[email protected]
7272
with:
7373
repository: "grafana/clickhouse-datasource"
74-
tag: "v1.1.2"
75-
fileName: "grafana-clickhouse-datasource-1.1.2.zip"
74+
tag: "v2.0.5"
75+
fileName: "grafana-clickhouse-datasource-2.0.5.linux_arm64.zip"
76+
77+
- uses: robinraju/[email protected]
78+
with:
79+
repository: "grafana/clickhouse-datasource"
80+
tag: "v2.0.5"
81+
fileName: "grafana-clickhouse-datasource-2.0.5.linux_amd64.zip"
7682

7783
- name: Unzip grafana clickhouse datasource
78-
run: unzip grafana-clickhouse-datasource-1.1.2.zip
84+
run: |
85+
unzip -d plugin-amd64 grafana-clickhouse-datasource-2.0.5.linux_amd64.zip
86+
unzip -d plugin-arm64 grafana-clickhouse-datasource-2.0.5.linux_arm64.zip
7987
8088
- name: Log in to GitHub Docker Registry
8189
uses: docker/login-action@v2
@@ -97,13 +105,6 @@ jobs:
97105
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
98106
password: "${{ secrets.REGISTRY_PASS }}"
99107

100-
- name: Log in to ALIYUN Docker Registry
101-
uses: docker/login-action@v2
102-
with:
103-
registry: "${{ secrets.REGISTRY_ALIYUN_ADDR }}"
104-
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
105-
password: "${{ secrets.REGISTRY_PASS }}"
106-
107108
- name: set env
108109
run: |
109110
echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|' >> $GITHUB_ENV
@@ -119,11 +120,43 @@ jobs:
119120
tags: |
120121
"ghcr.io/${{ github.repository_owner }}/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}-${{ env.IMAGE_TAG }}"
121122
"ghcr.io/${{ github.repository_owner }}/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}"
123+
"deepflowce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}"
124+
125+
- name: Log in to ALIYUN HongKong Docker Registry
126+
uses: docker/login-action@v2
127+
with:
128+
registry: "registry.cn-hongkong.aliyuncs.com"
129+
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
130+
password: "${{ secrets.REGISTRY_PASS }}"
131+
132+
- name: Build and push deepflow-init-grafana images to aliyun hongkong
133+
uses: docker/build-push-action@v2
134+
with:
135+
context: .
136+
push: true
137+
file: Dockerfile
138+
platforms: linux/amd64,linux/arm64
139+
tags: |
140+
"registry.cn-hongkong.aliyuncs.com/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}-${{ env.IMAGE_TAG }}"
141+
"registry.cn-hongkong.aliyuncs.com/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}"
142+
143+
- name: Log in to ALIYUN Docker Registry
144+
uses: docker/login-action@v2
145+
with:
146+
registry: "registry.cn-beijing.aliyuncs.com"
147+
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
148+
password: "${{ secrets.REGISTRY_PASS }}"
149+
150+
- name: Build and push deepflow-init-grafana images to aliyun beijing
151+
uses: docker/build-push-action@v2
152+
with:
153+
context: .
154+
push: true
155+
file: Dockerfile
156+
platforms: linux/amd64,linux/arm64
157+
tags: |
122158
"registry.cn-beijing.aliyuncs.com/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}-${{ env.IMAGE_TAG }}"
123159
"registry.cn-beijing.aliyuncs.com/deepflow-ce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}"
124-
"deepflowce/${{ env.IMAGE }}:${{ env.IMAGE_TAG_PREFIX }}"
125-
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/dev/${{ env.IMAGE }}-ce:${{ env.IMAGE_TAG_PREFIX }}-${{ env.IMAGE_TAG }}"
126-
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/dev/${{ env.IMAGE }}-ce:${{ env.IMAGE_TAG_PREFIX }}"
127160
128161
- name: Build tar.gz
129162
run: |

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM busybox:1.28
22
COPY dashboards /dashboards
3-
COPY grafana-clickhouse-datasource /deepflow-plugins/grafana-clickhouse-datasource
3+
ARG TARGETARCH
4+
RUN --mount=target=/tmp-mount \
5+
mkdir -p /deepflow-plugins/grafana-clickhouse-datasource && \
6+
cp -raf /tmp-mount/plugin-${TARGETARCH}/grafana-clickhouse-datasource/* /deepflow-plugins/grafana-clickhouse-datasource/
47
COPY deepflow-apptracing-panel/dist /deepflow-plugins/deepflow-apptracing-panel
58
COPY deepflow-querier-datasource/dist /deepflow-plugins/deepflow-querier-datasource
69
COPY deepflow-topo-panel/dist /deepflow-plugins/deepflow-topo-panel

0 commit comments

Comments
 (0)