Skip to content

Commit b6fc3d7

Browse files
author
liuyu
committedJun 20, 2024·
build arm64
1 parent 052be4d commit b6fc3d7

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed
 

‎.github/workflows/publish_daemon.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
- name: Check out the repo
1616
uses: actions/checkout@v3
1717

18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
21+
- name: Set up Docker Buildx
22+
id: buildx
23+
uses: docker/setup-buildx-action@v3
24+
1825
- name: Log in to Docker Hub
1926
uses: docker/login-action@v2
2027
with:
@@ -27,4 +34,5 @@ jobs:
2734
push: true
2835
tags: beclab/fsnotify-daemon:${{ github.event.inputs.tags }}
2936
file: docker/Dockerfile.daemon
37+
platforms: linux/amd64, linux/arm64
3038

‎.github/workflows/publish_proxy.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
- name: Check out the repo
1616
uses: actions/checkout@v3
1717

18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
21+
- name: Set up Docker Buildx
22+
id: buildx
23+
uses: docker/setup-buildx-action@v3
24+
1825
- name: Log in to Docker Hub
1926
uses: docker/login-action@v2
2027
with:
@@ -27,4 +34,5 @@ jobs:
2734
push: true
2835
tags: beclab/fsnotify-proxy:${{ github.event.inputs.tags }}
2936
file: docker/Dockerfile.proxy
37+
platforms: linux/amd64, linux/arm64
3038

‎docker/Dockerfile.daemon

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN cd bytetrade.io/web3os/fs-lib && \
1616
go mod tidy
1717

1818
RUN cd bytetrade.io/web3os/fs-lib && \
19-
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -o fsnotify-daemon k8s/cmd/fsnotify-daemon/main.go
19+
CGO_ENABLED=1 go build -a -o fsnotify-daemon k8s/cmd/fsnotify-daemon/main.go
2020

2121
# Use distroless as minimal base image to package the manager binary
2222
# Refer to https://github.com/GoogleContainerTools/distroless for more details

‎docker/Dockerfile.proxy

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN cd bytetrade.io/web3os/fs-lib && \
1515
go mod tidy
1616

1717
RUN cd bytetrade.io/web3os/fs-lib && \
18-
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -o fsnotify-proxy k8s/cmd/fsnotify-proxy/main.go
18+
CGO_ENABLED=1 go build -a -o fsnotify-proxy k8s/cmd/fsnotify-proxy/main.go
1919

2020
# Use distroless as minimal base image to package the manager binary
2121
# Refer to https://github.com/GoogleContainerTools/distroless for more details

0 commit comments

Comments
 (0)
Please sign in to comment.