Skip to content

Commit 72ecb42

Browse files
authored
Merge pull request #2 from ahiho/AO-25
fix: build image to support multiple arch
2 parents 75fcd9c + 0c76e7f commit 72ecb42

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/uat.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ jobs:
3030

3131
- run: echo "RELEASE_VERSION=$(git describe --tags --long)" >> $GITHUB_ENV
3232

33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v2
35+
with:
36+
version: v0.10.0
37+
3338
- name: Build and push Docker image
3439
uses: docker/build-push-action@v4
3540
with:
3641
context: .
42+
platforms: linux/arm64,linux/amd64
3743
push: true
3844
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:uat-${{ env.RELEASE_VERSION }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
88
RUN go build -o /app/mysqlclonedb main.go
99

1010

11-
FROM mysql:8.0.34-debian AS final
11+
FROM mysql:8.0.34 AS final
1212

1313
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1414
COPY --from=builder /app/mysqlclonedb /app/mysqlclonedb

0 commit comments

Comments
 (0)