fix: publish multi-arch docker images (#1602) (thanks @denysvitali)
This commit is contained in:
parent
2045812a65
commit
3ac064139d
16
.github/workflows/docker-release.yml
vendored
16
.github/workflows/docker-release.yml
vendored
@ -41,12 +41,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{version}},suffix=-amd64
|
type=semver,pattern={{version}},suffix=-amd64
|
||||||
type=semver,pattern={{version}},suffix=-arm64
|
|
||||||
type=ref,event=branch,suffix=-amd64
|
type=ref,event=branch,suffix=-amd64
|
||||||
type=ref,event=branch,suffix=-arm64
|
|
||||||
|
|
||||||
- name: Build and push amd64 image
|
- name: Build and push amd64 image
|
||||||
id: build
|
id: build
|
||||||
@ -90,11 +86,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{version}},suffix=-amd64
|
|
||||||
type=semver,pattern={{version}},suffix=-arm64
|
type=semver,pattern={{version}},suffix=-arm64
|
||||||
type=ref,event=branch,suffix=-amd64
|
|
||||||
type=ref,event=branch,suffix=-arm64
|
type=ref,event=branch,suffix=-arm64
|
||||||
|
|
||||||
- name: Build and push arm64 image
|
- name: Build and push arm64 image
|
||||||
@ -118,6 +110,9 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
needs: [build-amd64, build-arm64]
|
needs: [build-amd64, build-arm64]
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@ -133,11 +128,12 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
|
type=raw,value=latest,enable={{is_tag}}
|
||||||
|
|
||||||
- name: Create and push manifest
|
- name: Create and push manifest
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||||
${{ needs.build-amd64.outputs.image-digest }} \
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build-amd64.outputs.image-digest }} \
|
||||||
${{ needs.build-arm64.outputs.image-digest }}
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build-arm64.outputs.image-digest }}
|
||||||
env:
|
env:
|
||||||
DOCKER_METADATA_OUTPUT_JSON: ${{ steps.meta.outputs.json }}
|
DOCKER_METADATA_OUTPUT_JSON: ${{ steps.meta.outputs.json }}
|
||||||
|
|||||||
@ -17,6 +17,7 @@ Docs: https://docs.clawd.bot
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Packaging: include dist/tts output in npm tarball (fixes missing dist/tts/tts.js).
|
- Packaging: include dist/tts output in npm tarball (fixes missing dist/tts/tts.js).
|
||||||
|
- CI: publish multi-arch Docker images on main and release tags. (#1602) Thanks @denysvitali.
|
||||||
|
|
||||||
## 2026.1.23
|
## 2026.1.23
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user