feat(ci): update docker to support multiple Platforms and add cleanup
This commit is contained in:
@@ -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
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user