From 4dbfea28ceab50b8069a2ae851d469f1b7b7c17f Mon Sep 17 00:00:00 2001 From: Matheus Macabu Date: Sun, 18 Aug 2024 16:41:16 +0200 Subject: [PATCH] build: create binaries and OCI image for linux/riscv64 --- .github/workflows/docker-release.yml | 4 ++-- .goreleaser.yaml | 1 + snap/snapcraft.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 40a5b32b..afbf0399 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -38,7 +38,7 @@ jobs: IMAGE_VERSION=${VERSION:1} 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 '${{ secrets.DOCKER_PASSWORD }}' | docker login -u '${{ secrets.DOCKER_USERNAME }}' --password-stdin @@ -60,7 +60,7 @@ jobs: -t "${IMAGE_NAME}:4" \ -t "${IMAGE_NAME}:latest" \ . - + cd github-action docker buildx build \ --label "org.opencontainers.image.authors=https://github.com/mikefarah/yq/graphs/contributors" \ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 757f694f..5ce01617 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,6 +29,7 @@ builds: - linux_mipsle - linux_ppc64 - linux_ppc64le + - linux_riscv64 - linux_s390x - netbsd_386 - netbsd_amd64 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 93aab0e2..c5b26601 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -13,6 +13,7 @@ architectures: - build-on: armhf - build-on: amd64 - build-on: i386 + - build-on: riscv64 apps: yq: command: bin/yq