Modify `.drone.yml` and `.goreleaser.yml`.

This commit is contained in:
Kazuhiro MUSASHI 2024-08-11 18:44:24 +09:00
parent 2d60f5aece
commit a2c31f1831
2 changed files with 25 additions and 22 deletions

View File

@ -20,8 +20,9 @@ steps:
commands: commands:
- sudo chmod 666 /var/run/docker.sock - sudo chmod 666 /var/run/docker.sock
- curl -sL https://git.io/goreleaser -o /tmp/goreleaser-download - echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
- chmod +x /tmp/goreleaser-download - sudo apt update
- sudo apt install goreleaser
- sudo chown -R circleci:circleci . - sudo chown -R circleci:circleci .
- /tmp/goreleaser-download release --clean - /tmp/goreleaser-download release --clean

View File

@ -1,15 +1,16 @@
env: version: 2
- CGO_ENABLED=0
before: before:
hooks: hooks:
# you may remove this if you don't use vgo
- sudo apt update - sudo apt update
- sudo apt install rpm - sudo apt install rpm
- go mod tidy
- go mod download - go mod download
- go generate ./...
builds: builds:
- - env:
- CGO_ENABLED=0
flags: flags:
- -trimpath - -trimpath
goos: goos:
@ -19,18 +20,7 @@ builds:
- amd64 - amd64
archives: archives:
- - format: zip
format: zip
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms: nfpms:
- -
@ -41,7 +31,7 @@ nfpms:
# Your app's homepage. # Your app's homepage.
# Default is empty. # Default is empty.
#homepage: https://example.com/ homepage: https://blog.kazu634.com/
# Your app's maintainer (probably you). # Your app's maintainer (probably you).
# Default is empty. # Default is empty.
@ -58,21 +48,33 @@ release:
name: moneyforward name: moneyforward
disable: false disable: false
mode: append
gitea_urls: gitea_urls:
api: https://gitea.kazu634.com/api/v1/ api: https://gitea.kazu634.com/api/v1/
download: https://gitea.kazu634.com download: https://gitea.kazu634.com
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
use: gitea
dockers: dockers:
- -
image_templates: image_templates:
- reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }} - reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }}
- reg.kazu634.com/kazu634/{{ .ProjectName }}:latest - reg.kazu634.com/kazu634/{{ .ProjectName }}:latest
goos: linux goos: linux
goarch: amd64 goarch: amd64
dockerfile: Dockerfile dockerfile: Dockerfile
skip_push: false
skip_build: false
push_flags: push_flags:
- --tls-verify=false - --tls-verify=false