build: create binaries and OCI image for linux/riscv64

This commit is contained in:
Matheus Macabu 2024-08-18 16:41:16 +02:00
parent ec4fdb50ed
commit 4dbfea28ce
3 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@ jobs:
IMAGE_VERSION=${VERSION:1} IMAGE_VERSION=${VERSION:1}
echo "IMAGE_VERSION: ${IMAGE_VERSION}" echo "IMAGE_VERSION: ${IMAGE_VERSION}"
PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64" PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64,linux/riscv64"
echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}" echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}"
echo '${{ secrets.DOCKER_PASSWORD }}' | docker login -u '${{ secrets.DOCKER_USERNAME }}' --password-stdin echo '${{ secrets.DOCKER_PASSWORD }}' | docker login -u '${{ secrets.DOCKER_USERNAME }}' --password-stdin
@ -60,7 +60,7 @@ jobs:
-t "${IMAGE_NAME}:4" \ -t "${IMAGE_NAME}:4" \
-t "${IMAGE_NAME}:latest" \ -t "${IMAGE_NAME}:latest" \
. .
cd github-action cd github-action
docker buildx build \ docker buildx build \
--label "org.opencontainers.image.authors=https://github.com/mikefarah/yq/graphs/contributors" \ --label "org.opencontainers.image.authors=https://github.com/mikefarah/yq/graphs/contributors" \

View File

@ -29,6 +29,7 @@ builds:
- linux_mipsle - linux_mipsle
- linux_ppc64 - linux_ppc64
- linux_ppc64le - linux_ppc64le
- linux_riscv64
- linux_s390x - linux_s390x
- netbsd_386 - netbsd_386
- netbsd_amd64 - netbsd_amd64

View File

@ -13,6 +13,7 @@ architectures:
- build-on: armhf - build-on: armhf
- build-on: amd64 - build-on: amd64
- build-on: i386 - build-on: i386
- build-on: riscv64
apps: apps:
yq: yq:
command: bin/yq command: bin/yq