Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add auction demo package" #12

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 38 additions & 151 deletions .github/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
project_name: gno
version: 2

env:
- TAG_VERSION={{ if index .Env "TAG_VERSION" }}{{ .Env.TAG_VERSION }}{{ else }}latest{{ end }}
# supported in next versions -> https://github.com/goreleaser/goreleaser/issues/5059
# - TAG_VERSION="{{ envOrDefault "TAG_VERSION" "latest" }}"

before:
hooks:
Expand Down Expand Up @@ -71,22 +65,6 @@ builds:
goarm:
- 6
- 7
- id: gnofaucet
dir: ./contribs/gnofaucet
binary: gnofaucet
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7

gomod:
proxy: true

Expand Down Expand Up @@ -121,7 +99,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64"
build_flag_templates:
- "--target=gno"
- "--platform=linux/amd64"
Expand All @@ -141,7 +119,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm64/v8"
Expand All @@ -162,7 +140,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v6"
Expand All @@ -183,7 +161,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v7"
Expand All @@ -205,7 +183,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/amd64"
Expand All @@ -226,7 +204,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm64/v8"
Expand All @@ -248,7 +226,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v6"
Expand All @@ -270,7 +248,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v7"
Expand All @@ -292,7 +270,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/amd64"
Expand All @@ -308,7 +286,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm64/v8"
Expand All @@ -325,7 +303,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v6"
Expand All @@ -342,7 +320,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v7"
Expand All @@ -360,7 +338,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/amd64"
Expand All @@ -376,7 +354,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm64/v8"
Expand All @@ -393,7 +371,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v6"
Expand All @@ -410,7 +388,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v7"
Expand All @@ -421,74 +399,6 @@ dockers:
ids:
- gnoweb

# gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet

docker_manifests:
# https://goreleaser.com/customization/docker_manifest/

Expand All @@ -499,12 +409,12 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7
- ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7

# gnoland
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}
Expand All @@ -513,12 +423,12 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7

# gnokey
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}
Expand All @@ -527,40 +437,26 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7

# gnoweb
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7

# gnofaucet
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7

docker_signs:
- cmd: cosign
Expand Down Expand Up @@ -588,8 +484,6 @@ sboms:
artifacts: source

release:
disable: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
skip_upload: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
draft: true
replace_existing_draft: true
prerelease: auto
Expand All @@ -599,11 +493,4 @@ release:

You can find all docker images at:

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 }}"
https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }}
15 changes: 7 additions & 8 deletions .github/workflows/lint_template.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on:
workflow_call:
inputs:
modulepath:
required: true
type: string
go-version:
required: true
type: string
inputs:
modulepath:
required: true
type: string
go-version:
required: true
type: string


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