Skip to content

Commit

Permalink
Merge pull request #37 from wandera/release_imp
Browse files Browse the repository at this point in the history
Improve release and regenerate docs
  • Loading branch information
coufalja authored Apr 24, 2023
2 parents cf25fc7 + e9ec9a8 commit c590a30
Show file tree
Hide file tree
Showing 19 changed files with 236 additions and 47 deletions.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "wandera/delta"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "wandera/delta"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "wandera/delta"

9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
REGISTRY: ghcr.io
BINARY_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ github.repository }}
TAG: ${{ github.ref_name }}

Expand All @@ -30,14 +31,14 @@ jobs:
GOARCH: ${{ matrix.goarch }}
shell: bash
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o git2kube -ldflags '-w -s -X 'github.com/wandera/git2kube/cmd.Version=${{ env.TAG }} \
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ${{ env.BINARY_NAME }} -ldflags '-w -s -X 'github.com/wandera/${{ env.BINARY_NAME }}/cmd.Version=${{ env.TAG }} \
&& mkdir dist \
&& mv git2kube dist/git2kube \
&& tar -czvf git2kube-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz -C dist/ .
&& mv ${{ env.BINARY_NAME }} dist/${{ env.BINARY_NAME }} \
&& tar -czvf ${{ env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz -C dist/ .
- name: Release
uses: wandera/action-gh-release@v1
with:
files: git2kube-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
files: ${{ env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz

release-docker-image:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions docs/git2kube.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Commandline tool for loading files from git repository into K8s ConfigMap

### SEE ALSO

* [git2kube completion](git2kube_completion.md) - Generate the autocompletion script for the specified shell
* [git2kube gendoc](git2kube_gendoc.md) - Generates documentation for this tool in Markdown format
* [git2kube load](git2kube_load.md) - Loads files from git repository into target
* [git2kube version](git2kube_version.md) - Print the version information
Expand Down
30 changes: 30 additions & 0 deletions docs/git2kube_completion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## git2kube completion

Generate the autocompletion script for the specified shell

### Synopsis

Generate the autocompletion script for git2kube for the specified shell.
See each sub-command's help for details on how to use the generated script.


### Options

```
-h, --help help for completion
```

### Options inherited from parent commands

```
-l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
```

### SEE ALSO

* [git2kube](git2kube.md) - Git to ConfigMap conversion tool
* [git2kube completion bash](git2kube_completion_bash.md) - Generate the autocompletion script for bash
* [git2kube completion fish](git2kube_completion_fish.md) - Generate the autocompletion script for fish
* [git2kube completion powershell](git2kube_completion_powershell.md) - Generate the autocompletion script for powershell
* [git2kube completion zsh](git2kube_completion_zsh.md) - Generate the autocompletion script for zsh

49 changes: 49 additions & 0 deletions docs/git2kube_completion_bash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## git2kube completion bash

Generate the autocompletion script for bash

### Synopsis

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

source <(git2kube completion bash)

To load completions for every new session, execute once:

#### Linux:

git2kube completion bash > /etc/bash_completion.d/git2kube

#### macOS:

git2kube completion bash > $(brew --prefix)/etc/bash_completion.d/git2kube

You will need to start a new shell for this setup to take effect.


```
git2kube completion bash
```

### Options

```
-h, --help help for bash
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
-l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
```

### SEE ALSO

* [git2kube completion](git2kube_completion.md) - Generate the autocompletion script for the specified shell

40 changes: 40 additions & 0 deletions docs/git2kube_completion_fish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## git2kube completion fish

Generate the autocompletion script for fish

### Synopsis

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

git2kube completion fish | source

To load completions for every new session, execute once:

git2kube completion fish > ~/.config/fish/completions/git2kube.fish

You will need to start a new shell for this setup to take effect.


```
git2kube completion fish [flags]
```

### Options

```
-h, --help help for fish
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
-l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
```

### SEE ALSO

* [git2kube completion](git2kube_completion.md) - Generate the autocompletion script for the specified shell

37 changes: 37 additions & 0 deletions docs/git2kube_completion_powershell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## git2kube completion powershell

Generate the autocompletion script for powershell

### Synopsis

Generate the autocompletion script for powershell.

To load completions in your current shell session:

git2kube completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command
to your powershell profile.


```
git2kube completion powershell [flags]
```

### Options

```
-h, --help help for powershell
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
-l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
```

### SEE ALSO

* [git2kube completion](git2kube_completion.md) - Generate the autocompletion script for the specified shell

51 changes: 51 additions & 0 deletions docs/git2kube_completion_zsh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## git2kube completion zsh

Generate the autocompletion script for zsh

### Synopsis

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need
to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

source <(git2kube completion zsh)

To load completions for every new session, execute once:

#### Linux:

git2kube completion zsh > "${fpath[1]}/_git2kube"

#### macOS:

git2kube completion zsh > $(brew --prefix)/share/zsh/site-functions/_git2kube

You will need to start a new shell for this setup to take effect.


```
git2kube completion zsh [flags]
```

### Options

```
-h, --help help for zsh
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
-l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
```

### SEE ALSO

* [git2kube completion](git2kube_completion.md) - Generate the autocompletion script for the specified shell

4 changes: 0 additions & 4 deletions docs/git2kube_gendoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Generates documentation for this tool in Markdown format

### Synopsis

Generates documentation for this tool in Markdown format

```
git2kube gendoc [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_load.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Loads files from git repository into target

### Synopsis

Loads files from git repository into target

### Options

```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_load_configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Loads files from git repository into ConfigMap

### Synopsis

Loads files from git repository into ConfigMap

```
git2kube load configmap [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_load_folder.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Loads files from git repository into Folder

### Synopsis

Loads files from git repository into Folder

```
git2kube load folder [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_load_secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Loads files from git repository into Secret

### Synopsis

Loads files from git repository into Secret

```
git2kube load secret [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Print the version information

### Synopsis

Print the version information

```
git2kube version [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Runs watcher that periodically check the provided repository

### Synopsis

Runs watcher that periodically check the provided repository

### Options

```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_watch_configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Runs watcher that periodically check the provided repository and updates K8s ConfigMap accordingly

### Synopsis

Runs watcher that periodically check the provided repository and updates K8s ConfigMap accordingly

```
git2kube watch configmap [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_watch_folder.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Runs watcher that periodically check the provided repository and updates target folder accordingly

### Synopsis

Runs watcher that periodically check the provided repository and updates target folder accordingly

```
git2kube watch folder [flags]
```
Expand Down
4 changes: 0 additions & 4 deletions docs/git2kube_watch_secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Runs watcher that periodically check the provided repository and updates K8s Secret accordingly

### Synopsis

Runs watcher that periodically check the provided repository and updates K8s Secret accordingly

```
git2kube watch secret [flags]
```
Expand Down
3 changes: 0 additions & 3 deletions hooks/build

This file was deleted.

0 comments on commit c590a30

Please sign in to comment.