Skip to content

Commit

Permalink
Add CI validation job for Flow Visibility (#3312)
Browse files Browse the repository at this point in the history
In this commit, we add a CI validation job for Flow Visibility. It will
validate the deployment of Flow Exporter, Flow Aggregator, Clickhouse
Server, and Grafana UI dashboard. It will execute daily on Jenkins like
what we have before for the ELK Flow Collector setup.

Signed-off-by: Yongming Ding <dyongming@vmware.com>
  • Loading branch information
Yongming Ding authored Mar 25, 2022
1 parent b109866 commit c2a664b
Show file tree
Hide file tree
Showing 10 changed files with 3,994 additions and 7 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docker_update_flow_visibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Anyone with write permissions to the antrea-io/antrea Github repository can
# trigger this workflow manually, but please check with a maintainer first. The
# workflow will tag and push flow visibility related external images into Antrea
# Docker hub.
name: Manually update flow visibility Docker images

on:
workflow_dispatch:
inputs:
ch-operator-tag:
description: 'Tag for clickhouse-operator and metrics-exporter Docker image'
required: true
grafana-tag:
description: 'Tag for grafana Docker image'
required: true
ch-server-tag:
description: 'Tag for clickhouse-server Docker image'
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push antrea/flow-visibility-clickhouse-operator
uses: akhilerm/tag-push-action@v2.0.0
with:
src: docker.io/altinity/clickhouse-operator:${{ github.event.inputs.ch-operator-tag }}
dst: |
docker.io/antrea/flow-visibility-clickhouse-operator:${{ github.event.inputs.ch-operator-tag }}
- name: Push antrea/flow-visibility-metrics-exporter
uses: akhilerm/tag-push-action@v2.0.0
with:
src: docker.io/altinity/metrics-exporter:${{ github.event.inputs.ch-operator-tag }}
dst: |
docker.io/antrea/flow-visibility-metrics-exporter:${{ github.event.inputs.ch-operator-tag }}
- name: Push antrea/flow-visibility-grafana
uses: akhilerm/tag-push-action@v2.0.0
with:
src: docker.io/grafana/grafana:${{ github.event.inputs.grafana-tag }}
dst: |
docker.io/antrea/flow-visibility-grafana:${{ github.event.inputs.grafana-tag }}
- name: Push antrea/flow-visibility-clickhouse-server
uses: akhilerm/tag-push-action@v2.0.0
with:
src: docker.io/yandex/clickhouse-server:${{ github.event.inputs.ch-server-tag }}
dst: |
docker.io/antrea/flow-visibility-clickhouse-server:${{ github.event.inputs.ch-server-tag }}
Loading

0 comments on commit c2a664b

Please sign in to comment.