Skip to content

Commit

Permalink
feat: 🎸 add argocd plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed Jun 12, 2024
1 parent efb410e commit 55e3e3a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions argocd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# argocd plugin

[argocd](https://argocdcli.io) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running:

### Global install

```shell
proto plugin add argocd "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/argocd/plugin.toml" --global
proto install argocd
```

### Per-project install

```shell
proto plugin add argocd "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/argocd/plugin.toml"
proto pin argocd latest --resolve
```
27 changes: 27 additions & 0 deletions argocd/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A TOML plugin for argocd:
# https://moonrepo.dev/docs/argocd/plugins#toml-plugin

name = "argocd"
type = "cli"

[platform.linux]
download-file = "argocd-linux-{arch}"
checksum-file = "cli_checksums.txt"

[platform.macos]
download-file = "argocd-darwin-{arch}"
checksum-file = "cli_checksums.txt"

[platform.windows]
download-file = "argocd-windows-{arch}.exe"
checksum-file = "cli_checksums.txt"

[install]
download-url = "https://github.com/argoproj/argo-cd/releases/download/v{version}/{download_file}"

[install.arch]
aarch64 = "arm64"
x86_64 = "amd64"

[resolve]
git-url = "https://github.com/argoproj/argo-cd"

0 comments on commit 55e3e3a

Please sign in to comment.