Skip to content

Commit cd425f3

Browse files
authored
chore(ci): add support for linux/riscv64 (goproxy#94)
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
1 parent 093e27c commit cd425f3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
config-file: .github/release-please-config.json
1818
manifest-file: .github/.release-please-manifest.json
1919
release:
20-
runs-on: ubuntu-latest
2120
needs: release-please
2221
if: needs.release-please.outputs.release_created
22+
runs-on: ubuntu-latest
2323
steps:
2424
- name: Check out code
2525
uses: actions/checkout@v4

‎.goreleaser.yaml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ builds:
2121
- linux_arm_6
2222
- linux_arm_7
2323
- linux_ppc64le
24+
- linux_riscv64
2425
- linux_s390x
2526
- windows_386
2627
- windows_amd64
@@ -90,6 +91,16 @@ dockers:
9091
- --build-arg=GORELEASER_ARTIFACTS_TARBALL=./dist/{{.ProjectName}}_{{.Version}}_linux_ppc64le.tar.gz
9192
extra_files:
9293
- ./
94+
- goarch: riscv64
95+
image_templates:
96+
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-riscv64
97+
use: buildx
98+
build_flag_templates:
99+
- --platform=linux/riscv64
100+
- --build-arg=USE_GORELEASER_ARTIFACTS=1
101+
- --build-arg=GORELEASER_ARTIFACTS_TARBALL=./dist/{{.ProjectName}}_{{.Version}}_linux_riscv64.tar.gz
102+
extra_files:
103+
- ./
93104
- goarch: s390x
94105
image_templates:
95106
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
@@ -110,6 +121,7 @@ docker_manifests:
110121
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
111122
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
112123
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
124+
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-riscv64
113125
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
114126
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Major}}.{{.Minor}}
115127
image_templates:
@@ -119,6 +131,7 @@ docker_manifests:
119131
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
120132
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
121133
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
134+
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-riscv64
122135
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
123136
skip_push: auto
124137
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Major}}
@@ -129,6 +142,7 @@ docker_manifests:
129142
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
130143
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
131144
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
145+
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-riscv64
132146
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
133147
skip_push: auto
134148
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:latest
@@ -139,6 +153,7 @@ docker_manifests:
139153
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
140154
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
141155
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
156+
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-riscv64
142157
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
143158
skip_push: auto
144159

0 commit comments

Comments
 (0)