Skip to content

Commit de8381a

Browse files
committed
* ci support linux arm64 #458
1 parent e6fe19d commit de8381a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/prometheus-alert-workflows.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020

2121
steps:
2222
- name: Check out the repo
23-
uses: actions/checkout@v2
24-
23+
uses: actions/checkout@v4
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
2528
- name: Log in to Docker Hub
26-
uses: docker/login-action@v1
29+
uses: docker/login-action@v3
2730
with:
2831
username: ${{ secrets.DOCKERHUB_USERNAME }}
2932
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -35,9 +38,11 @@ jobs:
3538
images: feiyu563/prometheus-alert
3639

3740
- name: Build and push Docker image
38-
uses: docker/build-push-action@v2
41+
uses: docker/build-push-action@v6
3942
with:
4043
context: .
44+
platforms: linux/amd64,linux/arm64
4145
push: true
46+
pull: true
4247
tags: ${{ steps.meta.outputs.tags }}
43-
labels: ${{ steps.meta.outputs.labels }}
48+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)