feat(ci): update docker to support multiple Platforms and add cleanup

This commit is contained in:
2025-11-20 10:20:52 +01:00
parent f6b545de76
commit d2dc9d108c
2 changed files with 13 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ jobs:
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -27,4 +30,12 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: tueem/svg-templater:${{ VERSION }}
platforms:
- linux/amd64
- linux/arm64
- windows/amd64
- darwin/amd64
- darwin/arm64
tags:
- tueem/svg-templater:${{ VERSION }}
- tueem/svg-templater:latest

View File

@@ -7,5 +7,6 @@ RUN go mod download
COPY . .
RUN go build -v -o /usr/local/bin/svg-templater ./...
RUN rm -rf ./*
CMD ["svg-templater"]