hookdeck-cli 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +33 -15
- package/.goreleaser/linux.yml +11 -0
- package/.goreleaser/windows-npm.yml +46 -0
- package/.goreleaser/windows.yml +0 -3
- package/README.md +9 -1
- package/package.json +1 -1
- package/.github/workflows/publish-npm.yml +0 -19
|
@@ -49,15 +49,6 @@ jobs:
|
|
|
49
49
|
args: release -f .goreleaser/linux.yml --rm-dist
|
|
50
50
|
env:
|
|
51
51
|
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
|
52
|
-
# - name: Upload to Bintray
|
|
53
|
-
# run: |
|
|
54
|
-
# scripts/publish-deb-to-bintray.sh
|
|
55
|
-
# scripts/publish-rpm-to-bintray.sh
|
|
56
|
-
# shell: bash
|
|
57
|
-
# env:
|
|
58
|
-
# GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
|
59
|
-
# BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
|
60
|
-
# BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
|
61
52
|
|
|
62
53
|
build-windows:
|
|
63
54
|
runs-on: windows-latest
|
|
@@ -77,9 +68,36 @@ jobs:
|
|
|
77
68
|
args: release -f .goreleaser/windows.yml --rm-dist
|
|
78
69
|
env:
|
|
79
70
|
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
|
|
72
|
+
build-windows-npm:
|
|
73
|
+
runs-on: windows-latest
|
|
74
|
+
steps:
|
|
75
|
+
- name: Code checkout
|
|
76
|
+
uses: actions/checkout@v2
|
|
77
|
+
with:
|
|
78
|
+
fetch-depth: 0
|
|
79
|
+
- name: Set up Go
|
|
80
|
+
uses: actions/setup-go@v2
|
|
81
|
+
with:
|
|
82
|
+
go-version: 1.16
|
|
83
|
+
- name: Run GoReleaser
|
|
84
|
+
uses: goreleaser/goreleaser-action@v2
|
|
85
|
+
with:
|
|
86
|
+
version: v0.157.0
|
|
87
|
+
args: release -f .goreleaser/windows-npm.yml --rm-dist
|
|
88
|
+
env:
|
|
89
|
+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
|
90
|
+
|
|
91
|
+
publish-npm:
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
needs: [build-windows-npm, build-linux, build-mac]
|
|
94
|
+
steps:
|
|
95
|
+
- uses: actions/checkout@v3
|
|
96
|
+
- uses: actions/setup-node@v3
|
|
97
|
+
with:
|
|
98
|
+
node-version: "16.x"
|
|
99
|
+
registry-url: "https://registry.npmjs.org"
|
|
100
|
+
- run: npm ci
|
|
101
|
+
- run: npm publish
|
|
102
|
+
env:
|
|
103
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.goreleaser/linux.yml
CHANGED
|
@@ -17,6 +17,17 @@ builds:
|
|
|
17
17
|
- linux
|
|
18
18
|
goarch:
|
|
19
19
|
- amd64
|
|
20
|
+
- id: hookdeck-linux-arm64
|
|
21
|
+
ldflags:
|
|
22
|
+
- -s -w -X github.com/hookdeck/hookdeck-cli/pkg/version.Version={{.Version}}
|
|
23
|
+
binary: hookdeck
|
|
24
|
+
env:
|
|
25
|
+
- CGO_ENABLED=0
|
|
26
|
+
main: ./main.go
|
|
27
|
+
goos:
|
|
28
|
+
- linux
|
|
29
|
+
goarch:
|
|
30
|
+
- arm64
|
|
20
31
|
- id: hookdeck-linux-arm
|
|
21
32
|
ldflags:
|
|
22
33
|
- -s -w -X github.com/hookdeck/hookdeck-cli/pkg/version.Version={{.Version}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
env:
|
|
2
|
+
- GO111MODULE=on
|
|
3
|
+
before:
|
|
4
|
+
hooks:
|
|
5
|
+
- go mod download
|
|
6
|
+
- go generate ./...
|
|
7
|
+
project_name: hookdeck
|
|
8
|
+
builds:
|
|
9
|
+
- id: hookdeck-windows
|
|
10
|
+
ldflags:
|
|
11
|
+
- -s -w -X github.com/hookdeck/hookdeck-cli/pkg/version.Version={{.Version}}
|
|
12
|
+
binary: hookdeck
|
|
13
|
+
env:
|
|
14
|
+
- CGO_ENABLED=1
|
|
15
|
+
- CC=x86_64-w64-mingw32-gcc
|
|
16
|
+
- CXX=x86_64-w64-mingw32-g++
|
|
17
|
+
main: ./main.go
|
|
18
|
+
goos:
|
|
19
|
+
- windows
|
|
20
|
+
goarch:
|
|
21
|
+
- amd64
|
|
22
|
+
- 386
|
|
23
|
+
archives:
|
|
24
|
+
- replacements:
|
|
25
|
+
files:
|
|
26
|
+
- none*
|
|
27
|
+
changelog:
|
|
28
|
+
sort: asc
|
|
29
|
+
filters:
|
|
30
|
+
exclude:
|
|
31
|
+
- "^docs:"
|
|
32
|
+
- "^test:"
|
|
33
|
+
checksum:
|
|
34
|
+
name_template: "{{ .ProjectName }}-windows-checksums-npm.txt"
|
|
35
|
+
snapshot:
|
|
36
|
+
name_template: "{{ .Tag }}-next"
|
|
37
|
+
scoop:
|
|
38
|
+
bucket:
|
|
39
|
+
owner: hookdeck
|
|
40
|
+
name: scoop-hookdeck
|
|
41
|
+
commit_author:
|
|
42
|
+
name: hookdeck-ci
|
|
43
|
+
email: support@hookdeck.com
|
|
44
|
+
homepage: https://hookdeck.com
|
|
45
|
+
description: Hookdeck CLI utility
|
|
46
|
+
license: Apache 2.0
|
package/.goreleaser/windows.yml
CHANGED
package/README.md
CHANGED
|
@@ -20,6 +20,14 @@ For a complete reference, see the [CLI reference](https://hookdeck.com/cli)
|
|
|
20
20
|
|
|
21
21
|
Hookdeck CLI is available for macOS, Windows, and Linux for distros like Ubuntu, Debian, RedHat and CentOS.
|
|
22
22
|
|
|
23
|
+
### NPM
|
|
24
|
+
|
|
25
|
+
Hookdeck CLI is distributed as an NPM package:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm install hookdeck -g
|
|
29
|
+
```
|
|
30
|
+
|
|
23
31
|
### macOS
|
|
24
32
|
|
|
25
33
|
Hookdeck CLI is available on macOS via [Homebrew](https://brew.sh/):
|
|
@@ -42,7 +50,7 @@ scoop install hookdeck
|
|
|
42
50
|
To install the Hookdeck CLI on Linux without a package manager:
|
|
43
51
|
|
|
44
52
|
1. Download the latest linux tar.gz file from https://github.com/hookdeck/hookdeck-cli/releases/latest
|
|
45
|
-
2. Unzip the file: tar -xvf
|
|
53
|
+
2. Unzip the file: tar -xvf hookdeck_X.X.X_linux_amd64.tar.gz
|
|
46
54
|
3. Run the executable: ./hookdeck
|
|
47
55
|
|
|
48
56
|
### Docker
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Publish Package to npmjs
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
release:
|
|
5
|
-
types: [released]
|
|
6
|
-
jobs:
|
|
7
|
-
build:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v3
|
|
11
|
-
# Setup .npmrc file to publish to npm
|
|
12
|
-
- uses: actions/setup-node@v3
|
|
13
|
-
with:
|
|
14
|
-
node-version: "16.x"
|
|
15
|
-
registry-url: "https://registry.npmjs.org"
|
|
16
|
-
- run: npm ci
|
|
17
|
-
- run: npm publish
|
|
18
|
-
env:
|
|
19
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|