-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da54b53
commit 53ac65e
Showing
7 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
variables: | ||
grv: &goreleaser-version "1.21.1" | ||
gv: &go-version "1.21.3" | ||
|
||
version: 2.1 | ||
|
||
orbs: | ||
gor: hubci/goreleaser@2.4 | ||
|
||
workflows: | ||
main-wf: | ||
jobs: | ||
- test | ||
- gor/release: | ||
name: goreleaser-snapshot | ||
version: *goreleaser-version | ||
go-version: *go-version | ||
dry-run: true | ||
post-steps: | ||
- persist_to_workspace: | ||
root: "." | ||
paths: | ||
- "dist" | ||
release-wf: | ||
jobs: | ||
- test: | ||
filters: &semverFilters | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
# SemVer regex | ||
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/ | ||
- gor/release: | ||
name: goreleaser-publish | ||
version: *goreleaser-version | ||
go-version: *go-version | ||
filters: *semverFilters | ||
post-steps: | ||
- persist_to_workspace: | ||
root: "." | ||
paths: | ||
- "dist" | ||
context: goreleaser-ctx | ||
|
||
jobs: | ||
test: | ||
docker: | ||
- image: cimg/go:1.21 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- go-mod-v1 | ||
- run: | ||
name: "Download Dependancies" | ||
command: go mod download | ||
- run: | ||
name: "Run Tests" | ||
command: go test ./... | ||
- save_cache: | ||
key: go-mod-v1 | ||
paths: | ||
- "/go/pkg/mod" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
project_name: ippi | ||
|
||
builds: | ||
- dir: ippi | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
|
||
archives: | ||
- format: tar.gz | ||
name_template: >- | ||
{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }} | ||
files: | ||
- LICENSE | ||
- README.md | ||
|
||
nfpms: | ||
- file_name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Arch }}" | ||
vendor: "Cloud Unpacked" | ||
homepage: "https://www.CloudUnpacked.com" | ||
maintainer: "Ricardo N Feliciano <Ricardo@Feliciano.Tech>" | ||
description: "A simple public IP address API" | ||
license: MIT | ||
formats: | ||
- deb | ||
bindir: /usr/bin | ||
|
||
checksum: | ||
name_template: "{{ .ProjectName }}-v{{ .Version }}-checksums.txt" | ||
|
||
announce: | ||
skip: "{{ gt .Patch 0 }}" | ||
mastodon: | ||
enabled: true | ||
server: "https://nanobyte.cafe" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.