just need to figure out config files, everything else appears to work

This commit is contained in:
2021-08-08 22:42:40 -04:00
parent 74e3bc730e
commit fe7443daaa
7 changed files with 48 additions and 58 deletions

View File

@@ -2,11 +2,14 @@
# Make sure to check the documentation at http://goreleaser.com
env_files:
github_token: .env
#github_token: .env
gitea_token: .env
project_name: goInventorize
env:
- P_NAME_LOWER=goinventorize
before:
hooks:
# You may remove this if you don't use go modules.
@@ -15,31 +18,19 @@ before:
- go generate ./...
builds:
-
id: "linux-amd64"
main: ./main
binary: goInventorize
main: main.go
binary: "{{.ProjectName}}-{{.Os}}-{{.Arch}}"
env:
- CGO_ENABLED=0
- PORT=3000
goos:
- linux
goarch:
- amd64
-
id: "windows-amd64"
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
-
id: "darwin-amd64"
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
# - arm
# - arm64
archives:
- replacements:
@@ -52,15 +43,17 @@ dockers:
-
goos: linux
goarch: amd64
ids:
- "linux-amd64"
# ids:
# - "linux-amd64"
# Templates of the Docker image names.
extra_files:
- README.md
image_templates:
- "deranjer/goInventorize:latest"
- "deranjer/goInventorize:{{ .Tag }}"
- "deranjer/goInventorize:{{ .Tag }}-{{ .Env.GO_VERSION }}"
- "deranjer/goInventorize:v{{ .Major }}"
- "ghcr.io/deranjer/goInventorize:latest"
- "deranjer/{{ .Env.P_NAME_LOWER }}:latest"
- "deranjer/{{ .Env.P_NAME_LOWER }}:{{ .Tag }}"
- "deranjer/{{ .Env.P_NAME_LOWER }}:{{ .Tag }}-{{ .Env.GO_VERSION }}"
- "deranjer/{{ .Env.P_NAME_LOWER }}:v{{ .Major }}"
- "ghcr.io/deranjer/{{ .Env.P_NAME_LOWER }}:latest"
dockerfile: Dockerfile
@@ -72,6 +65,17 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
release:
gitea:
owner: deranjer
name: "{{.ProjectName}}"
draft: true
prerelease: auto
gitea_urls:
api: https://gitea.derajnet.duckdns.org/api/v1/
download: https://gitea.derajnet.duckdns.org
checksum:
name_template: 'checksums.txt'
snapshot: