diff --git a/.github/goreleaser.yaml b/.github/goreleaser.yaml index 562353bf0ab..cd3c62c2ae6 100644 --- a/.github/goreleaser.yaml +++ b/.github/goreleaser.yaml @@ -504,6 +504,74 @@ dockers: ids: - gnofaucet + # gnobro + - use: buildx + dockerfile: Dockerfile.release + goos: linux + goarch: amd64 + image_templates: + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-amd64" + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-amd64" + build_flag_templates: + - "--target=gnobro" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}/gnobro" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + ids: + - gnobro + - use: buildx + dockerfile: Dockerfile.release + goos: linux + goarch: arm64 + image_templates: + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-arm64v8" + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-arm64v8" + build_flag_templates: + - "--target=gnobro" + - "--platform=linux/arm64/v8" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}/gnobro" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + ids: + - gnobro + - use: buildx + dockerfile: Dockerfile.release + goos: linux + goarch: arm + goarm: 6 + image_templates: + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-armv6" + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-armv6" + build_flag_templates: + - "--target=gnobro" + - "--platform=linux/arm/v6" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}/gnobro" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + ids: + - gnobro + - use: buildx + dockerfile: Dockerfile.release + goos: linux + goarch: arm + goarm: 7 + image_templates: + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-armv7" + - "ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-armv7" + build_flag_templates: + - "--target=gnobro" + - "--platform=linux/arm/v7" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}/gnobro" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + ids: + - gnobro + docker_manifests: # https://goreleaser.com/customization/docker_manifest/ @@ -577,6 +645,20 @@ docker_manifests: - ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6 - ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7 + # gnobro + - name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }} + image_templates: + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-amd64 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-arm64v8 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-armv6 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Version }}-armv7 + - name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }} + image_templates: + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-amd64 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-arm64v8 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-armv6 + - ghcr.io/gnolang/{{ .ProjectName }}/gnobro:{{ .Env.TAG_VERSION }}-armv7 + docker_signs: - cmd: cosign env: @@ -617,8 +699,8 @@ release: https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }} # Only valid for nightly build -# nightly: -# tag_name: nightly -# publish_release: true -# keep_single_release: true -# name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}-{{ .Env.TAG_VERSION }}" +nightly: + tag_name: nightly + publish_release: true + keep_single_release: true + name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}-{{ .Env.TAG_VERSION }}" diff --git a/Dockerfile.release b/Dockerfile.release index 554646eac72..4887857b5c2 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -18,7 +18,6 @@ EXPOSE 26656 26657 ENTRYPOINT [ "/usr/bin/gnoland" ] - # ## ghcr.io/gnolang/gno/gnokey FROM base as gnokey @@ -26,7 +25,6 @@ FROM base as gnokey COPY ./gnokey /usr/bin/gnokey ENTRYPOINT [ "/usr/bin/gnokey" ] - # ## ghcr.io/gnolang/gno/gnoweb FROM base as gnoweb