Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a642275
Added goreleaser
NehaNaithani Feb 27, 2023
9feeb41
Updated build yaml for m1
NehaNaithani Feb 27, 2023
626d427
Testing the make build
NehaNaithani Feb 27, 2023
4212113
Added job name
NehaNaithani Feb 27, 2023
5862afb
Added github token for goreleaser
NehaNaithani Feb 27, 2023
4752771
Updated build pipeline
NehaNaithani Feb 27, 2023
4d5c275
Added build osx yml
NehaNaithani Feb 27, 2023
9f6db4d
Test publish osx binaries
NehaNaithani Feb 27, 2023
e6232fc
Testing
NehaNaithani Feb 27, 2023
5ad4ea6
Updated brew.tpl
NehaNaithani Feb 28, 2023
324016d
Commented publish osx
NehaNaithani Feb 28, 2023
5da3e65
Updated goreleaser
NehaNaithani Mar 6, 2023
062bec2
Updated azure yaml
NehaNaithani Mar 6, 2023
75ca88c
Added windows release
NehaNaithani Mar 6, 2023
61d18f7
Test local linux binaries
NehaNaithani Mar 6, 2023
3c92ac9
Updated iofogctl test binaries
NehaNaithani Mar 6, 2023
c44630a
test release
NehaNaithani Mar 7, 2023
19d6868
Updated .gitignore file
NehaNaithani Mar 7, 2023
d8f4aaf
Test goreleaser release
NehaNaithani Mar 7, 2023
621d90d
Updated azure pipeline Publish stage
NehaNaithani Mar 12, 2023
ad2f368
Updated the lgflags value in goreleaser
NehaNaithani Mar 12, 2023
ced8550
Updated goos and goarch ldflags value
NehaNaithani Mar 13, 2023
2e0515f
Added package cloud token
NehaNaithani Mar 13, 2023
35711cb
Test packagecloud push
NehaNaithani Mar 14, 2023
2c68269
packagcloud push working
NehaNaithani Mar 14, 2023
5f4da0d
Updated node version
NehaNaithani Mar 14, 2023
cf0c909
Updated vm distro
NehaNaithani Mar 14, 2023
ae643d3
Updated pipeline
NehaNaithani Mar 14, 2023
9f84b48
Updated nvm version
NehaNaithani Mar 14, 2023
cd81353
Updated vanilla image
NehaNaithani Mar 14, 2023
40be6b6
Removed vanilla tests
NehaNaithani Mar 14, 2023
7ce4413
uncommented vanilla tests
NehaNaithani Mar 14, 2023
8ef79aa
Test vanilla
NehaNaithani Mar 14, 2023
aecd75e
Test
NehaNaithani Mar 15, 2023
30726eb
install npm 8.19.4
NehaNaithani Mar 15, 2023
0b0dcdf
Updated tests
NehaNaithani Mar 15, 2023
cfff2a2
updated npm config
NehaNaithani Mar 15, 2023
83ed1cc
Updated controller package to a scoped package
NehaNaithani Mar 16, 2023
a3a4752
TEst
NehaNaithani Mar 16, 2023
f99f77b
Updated packagecloud repo install script
NehaNaithani Mar 21, 2023
3523825
Updated install iofog controller script
NehaNaithani Mar 21, 2023
b537ae8
Updated nvm install script
NehaNaithani Mar 21, 2023
54f5e14
Fix tests
NehaNaithani Mar 22, 2023
c544fd5
Updated operator image to test k8s deployment
NehaNaithani Mar 22, 2023
120bae4
Removed unwanted files
NehaNaithani Mar 23, 2023
afc26ac
cleanup
NehaNaithani Mar 23, 2023
bf6177c
Added hooks
NehaNaithani Mar 26, 2023
5ade9aa
Added rice-box file
NehaNaithani Mar 26, 2023
05b1d89
Removed commented code
NehaNaithani Apr 2, 2023
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
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ reports/*
test.txt
test-report.xml

*rice-box.go
.vscode/*
.vscode/*
dist/
vendor/
bats-core/
.DS_Store
203 changes: 203 additions & 0 deletions .goreleaser-iofogctl-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# goreleaser config for iofogctl. See: https://goreleaser.com
#
# To execute goreleaser, use the mage targets:
#
# $ mage iofogctl:snapshot
# $ mage iofogctl:release
#
# The snapshot target builds the installation packages (brew, rpm,
# deb, etc), into the dist dir.
# The release target does the same, but also publishes the packages.
#
# See README.md for more.
project_name: iofogctl
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go version

builds:
- id: build_macos
binary: iofogctl
env:
main: ./cmd/iofogctl/main.go
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.versionNumber=v{{.Version}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.date={{.Date}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.platform={{.Os}}/{{.Arch }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.portManagerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.kubeletTag=3.0.0-beta1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.operatorTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.proxyTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.routerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.repo=iofog"

- id: build_linux
binary: iofogctl
main: ./cmd/iofogctl/
goos:
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
ldflags:
- -extldflags -static
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.versionNumber=v{{.Version}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.date={{.Date}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.platform={{.Os}}/{{.Arch }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.portManagerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.kubeletTag=3.0.0-beta1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.operatorTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.proxyTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.routerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.repo=iofog"
flags:
- -v

- id: build_windows
binary: iofogctl
env:
main: ./cmd/iofogctl/main.go
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.versionNumber=v{{.Version}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.date={{.Date}}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.platform={{.Os}}/{{.Arch }}"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.portManagerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.kubeletTag=3.0.0-beta1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.operatorTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.proxyTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.routerTag=3.0.0"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentTag=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.controllerVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.agentVersion=3.0.1"
- -s -w -X "github.com/eclipse-iofog/iofogctl/v3/pkg/util.repo=iofog"


archives:
-
id: linux
builds:
- build_linux
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
files:
- README.md
- LICENSE
-
id: macos
builds:
- build_macos
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
format: tar.gz
files:
- README.md
- LICENSE
replacements:
darwin: macos

checksum:
name_template: "{{.ProjectName}}-checksums.txt"

snapshot:
name_template: "{{ .Version }}~dev"

changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^dev:'
- 'README'
- Merge pull request
- Merge branch


release:
github:
owner: eclipse-iofog
name: iofogctl

# If set to true, will not auto-publish the release. Default is false.
draft: false

# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto

brews:
-
name: iofogctl
homepage: "https://github.com/eclipse-iofog/iofogctl"
description: "CLI for iofog"

tap:
owner: eclipse-iofog
name: homebrew-iofogctl

url_template: "https://github.com/eclipse-iofog/iofogctl/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

commit_author:
name: neha
email: neha@edgeworx.io

folder: Formula

test: |
system "#{bin}/iofogctl version"
install: |
bin.install "iofogctl"
skip_upload: false

nfpms:
-
builds: ['build_linux']
homepage: "https://github.com/eclipse-iofog/iofogctl"
description: CLI for iofog
maintainer: Eclipse
vendor: Edgeworx


formats:
- deb
- rpm

overrides:
deb:
file_name_template: "{{ .ConventionalFileName }}"
rpm:
# Note: file_name_template must have this EXACT format
file_name_template: "{{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}{{ if .Arm }}v{{ .Arm }}hl{{ end }}"
replacements:
amd64: x86_64
arm64: aarch64
Loading