Skip to content

Commit 8915d93

Browse files
authored
feat: add reloader build action (#1041)
Signed-off-by: liubo02 <liubo02@pingcap.com>
1 parent 1d6de38 commit 8915d93

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Push Reloader Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'reloader/v*'
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USER }}
23+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
24+
25+
- name: Extract image tag
26+
id: vars
27+
run: echo "image_tag=${GITHUB_REF_NAME#reloader/}" >> "$GITHUB_OUTPUT"
28+
29+
- name: Build and push image
30+
uses: docker/build-push-action@v6
31+
with:
32+
context: .
33+
file: reload/Dockerfile_buildx
34+
push: true
35+
tags: pingcap/tidb-monitor-reloader:${{ steps.vars.outputs.image_tag }}

0 commit comments

Comments
 (0)