Skip to content

Commit 8d78ad4

Browse files
authored
Merge branch 'master' into dev-thinhnx/feat_mux_support_query_strings
2 parents 88e8598 + e5c1152 commit 8d78ad4

File tree

171 files changed

+6749
-1306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+6749
-1306
lines changed

.github/goreleaser.yaml

Lines changed: 151 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
project_name: gno
2+
version: 2
3+
4+
env:
5+
- TAG_VERSION={{ if index .Env "TAG_VERSION" }}{{ .Env.TAG_VERSION }}{{ else }}latest{{ end }}
6+
# supported in next versions -> https://github.com/goreleaser/goreleaser/issues/5059
7+
# - TAG_VERSION="{{ envOrDefault "TAG_VERSION" "latest" }}"
28

39
before:
410
hooks:
@@ -65,6 +71,22 @@ builds:
6571
goarm:
6672
- 6
6773
- 7
74+
- id: gnofaucet
75+
dir: ./contribs/gnofaucet
76+
binary: gnofaucet
77+
env:
78+
- CGO_ENABLED=0
79+
goos:
80+
- linux
81+
- darwin
82+
goarch:
83+
- amd64
84+
- arm64
85+
- arm
86+
goarm:
87+
- 6
88+
- 7
89+
6890
gomod:
6991
proxy: true
7092

@@ -99,7 +121,7 @@ dockers:
99121
goarch: amd64
100122
image_templates:
101123
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
102-
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64"
124+
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64"
103125
build_flag_templates:
104126
- "--target=gno"
105127
- "--platform=linux/amd64"
@@ -119,7 +141,7 @@ dockers:
119141
goarch: arm64
120142
image_templates:
121143
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
122-
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8"
144+
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8"
123145
build_flag_templates:
124146
- "--target=gno"
125147
- "--platform=linux/arm64/v8"
@@ -140,7 +162,7 @@ dockers:
140162
goarm: 6
141163
image_templates:
142164
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
143-
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6"
165+
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6"
144166
build_flag_templates:
145167
- "--target=gno"
146168
- "--platform=linux/arm/v6"
@@ -161,7 +183,7 @@ dockers:
161183
goarm: 7
162184
image_templates:
163185
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
164-
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7"
186+
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7"
165187
build_flag_templates:
166188
- "--target=gno"
167189
- "--platform=linux/arm/v7"
@@ -183,7 +205,7 @@ dockers:
183205
goarch: amd64
184206
image_templates:
185207
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-amd64"
186-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64"
208+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64"
187209
build_flag_templates:
188210
- "--target=gnoland"
189211
- "--platform=linux/amd64"
@@ -204,7 +226,7 @@ dockers:
204226
goarch: arm64
205227
image_templates:
206228
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8"
207-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8"
229+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8"
208230
build_flag_templates:
209231
- "--target=gnoland"
210232
- "--platform=linux/arm64/v8"
@@ -226,7 +248,7 @@ dockers:
226248
goarm: 6
227249
image_templates:
228250
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6"
229-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6"
251+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6"
230252
build_flag_templates:
231253
- "--target=gnoland"
232254
- "--platform=linux/arm/v6"
@@ -248,7 +270,7 @@ dockers:
248270
goarm: 7
249271
image_templates:
250272
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7"
251-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7"
273+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7"
252274
build_flag_templates:
253275
- "--target=gnoland"
254276
- "--platform=linux/arm/v7"
@@ -270,7 +292,7 @@ dockers:
270292
goarch: amd64
271293
image_templates:
272294
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-amd64"
273-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64"
295+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64"
274296
build_flag_templates:
275297
- "--target=gnokey"
276298
- "--platform=linux/amd64"
@@ -286,7 +308,7 @@ dockers:
286308
goarch: arm64
287309
image_templates:
288310
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8"
289-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8"
311+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8"
290312
build_flag_templates:
291313
- "--target=gnokey"
292314
- "--platform=linux/arm64/v8"
@@ -303,7 +325,7 @@ dockers:
303325
goarm: 6
304326
image_templates:
305327
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6"
306-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6"
328+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6"
307329
build_flag_templates:
308330
- "--target=gnokey"
309331
- "--platform=linux/arm/v6"
@@ -320,7 +342,7 @@ dockers:
320342
goarm: 7
321343
image_templates:
322344
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7"
323-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7"
345+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7"
324346
build_flag_templates:
325347
- "--target=gnokey"
326348
- "--platform=linux/arm/v7"
@@ -338,7 +360,7 @@ dockers:
338360
goarch: amd64
339361
image_templates:
340362
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64"
341-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64"
363+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64"
342364
build_flag_templates:
343365
- "--target=gnoweb"
344366
- "--platform=linux/amd64"
@@ -354,7 +376,7 @@ dockers:
354376
goarch: arm64
355377
image_templates:
356378
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8"
357-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8"
379+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8"
358380
build_flag_templates:
359381
- "--target=gnoweb"
360382
- "--platform=linux/arm64/v8"
@@ -371,7 +393,7 @@ dockers:
371393
goarm: 6
372394
image_templates:
373395
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6"
374-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6"
396+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6"
375397
build_flag_templates:
376398
- "--target=gnoweb"
377399
- "--platform=linux/arm/v6"
@@ -388,7 +410,7 @@ dockers:
388410
goarm: 7
389411
image_templates:
390412
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7"
391-
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7"
413+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7"
392414
build_flag_templates:
393415
- "--target=gnoweb"
394416
- "--platform=linux/arm/v7"
@@ -399,6 +421,74 @@ dockers:
399421
ids:
400422
- gnoweb
401423

424+
# gnofaucet
425+
- use: buildx
426+
dockerfile: Dockerfile.release
427+
goos: linux
428+
goarch: amd64
429+
image_templates:
430+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64"
431+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64"
432+
build_flag_templates:
433+
- "--target=gnofaucet"
434+
- "--platform=linux/amd64"
435+
- "--label=org.opencontainers.image.created={{.Date}}"
436+
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
437+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
438+
- "--label=org.opencontainers.image.version={{.Version}}"
439+
ids:
440+
- gnofaucet
441+
- use: buildx
442+
dockerfile: Dockerfile.release
443+
goos: linux
444+
goarch: arm64
445+
image_templates:
446+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8"
447+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8"
448+
build_flag_templates:
449+
- "--target=gnofaucet"
450+
- "--platform=linux/arm64/v8"
451+
- "--label=org.opencontainers.image.created={{.Date}}"
452+
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
453+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
454+
- "--label=org.opencontainers.image.version={{.Version}}"
455+
ids:
456+
- gnofaucet
457+
- use: buildx
458+
dockerfile: Dockerfile.release
459+
goos: linux
460+
goarch: arm
461+
goarm: 6
462+
image_templates:
463+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6"
464+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6"
465+
build_flag_templates:
466+
- "--target=gnofaucet"
467+
- "--platform=linux/arm/v6"
468+
- "--label=org.opencontainers.image.created={{.Date}}"
469+
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
470+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
471+
- "--label=org.opencontainers.image.version={{.Version}}"
472+
ids:
473+
- gnofaucet
474+
- use: buildx
475+
dockerfile: Dockerfile.release
476+
goos: linux
477+
goarch: arm
478+
goarm: 7
479+
image_templates:
480+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7"
481+
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7"
482+
build_flag_templates:
483+
- "--target=gnofaucet"
484+
- "--platform=linux/arm/v7"
485+
- "--label=org.opencontainers.image.created={{.Date}}"
486+
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
487+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
488+
- "--label=org.opencontainers.image.version={{.Version}}"
489+
ids:
490+
- gnofaucet
491+
402492
docker_manifests:
403493
# https://goreleaser.com/customization/docker_manifest/
404494

@@ -409,12 +499,12 @@ docker_manifests:
409499
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8
410500
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6
411501
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7
412-
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:latest
502+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}
413503
image_templates:
414-
- ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64
415-
- ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8
416-
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6
417-
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7
504+
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64
505+
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8
506+
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6
507+
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7
418508

419509
# gnoland
420510
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}
@@ -423,12 +513,12 @@ docker_manifests:
423513
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8
424514
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6
425515
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7
426-
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest
516+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}
427517
image_templates:
428-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64
429-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8
430-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6
431-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7
518+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64
519+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8
520+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6
521+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7
432522

433523
# gnokey
434524
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}
@@ -437,26 +527,40 @@ docker_manifests:
437527
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8
438528
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6
439529
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7
440-
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest
530+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}
441531
image_templates:
442-
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64
443-
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8
444-
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6
445-
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7
446-
532+
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64
533+
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8
534+
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6
535+
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7
536+
447537
# gnoweb
448538
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}
449539
image_templates:
450540
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64
451541
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8
452542
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6
453543
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7
454-
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest
544+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}
455545
image_templates:
456-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64
457-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8
458-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6
459-
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7
546+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64
547+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8
548+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6
549+
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7
550+
551+
# gnofaucet
552+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}
553+
image_templates:
554+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64
555+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8
556+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6
557+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7
558+
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}
559+
image_templates:
560+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64
561+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8
562+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6
563+
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7
460564

461565
docker_signs:
462566
- cmd: cosign
@@ -484,6 +588,8 @@ sboms:
484588
artifacts: source
485589

486590
release:
591+
disable: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
592+
skip_upload: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
487593
draft: true
488594
replace_existing_draft: true
489595
prerelease: auto
@@ -493,4 +599,11 @@ release:
493599
494600
You can find all docker images at:
495601
496-
https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }}
602+
https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }}
603+
604+
# Only valid for nightly build
605+
nightly:
606+
tag_name: nightly
607+
publish_release: true
608+
keep_single_release: true
609+
name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}-{{ .Env.TAG_VERSION }}"

.github/workflows/lint_template.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
on:
22
workflow_call:
3-
inputs:
4-
modulepath:
5-
required: true
6-
type: string
7-
go-version:
8-
required: true
9-
type: string
3+
inputs:
4+
modulepath:
5+
required: true
6+
type: string
7+
go-version:
8+
required: true
9+
type: string
1010

1111

1212
jobs:
@@ -25,3 +25,4 @@ jobs:
2525
working-directory: ${{ inputs.modulepath }}
2626
args:
2727
--config=${{ github.workspace }}/.github/golangci.yml
28+
version: v1.59 # sync with misc/devdeps

0 commit comments

Comments
 (0)