Skip to content

Commit

Permalink
Release created from 8d45e0e
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 24, 2023
0 parents commit c725607
Show file tree
Hide file tree
Showing 12 changed files with 23,210 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tag_next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- releases/next

jobs:
verify_action_works:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ejhayes/action-argocd-deploy@releases/next
with:
dryRun: true
clientId: username
clientSecret: password
clusterName: 'default'
baseUrl: https://example.com
name: my-service
namespace: default
path: fixtures
project: default
valuesFile: fixtures/values.yaml
tokens: |
TAG: latest
annotations: |
myannotation: "true"
labels: |
group: group-a
env: prod
info: |
rev: ${{ github.ref }}
sha: ${{ github.sha }}
193 changes: 193 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
# v1.2.0 (Fri Feb 24 2023)

#### 🚀 Enhancement

- feat: deployment updates [#52](https://github.com/ejhayes/action-argocd-deploy/pull/52) ([@ejhayes](https://github.com/ejhayes))

#### 🐛 Bug Fix

- Fix: todo action [#51](https://github.com/ejhayes/action-argocd-deploy/pull/51) ([@ejhayes](https://github.com/ejhayes))

#### 📝 Documentation


#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.1.0 (Thu Feb 23 2023)

:tada: This release contains work from a new contributor! :tada:

Thank you, Rohit Khattar ([@rfun](https://github.com/rfun)), for all your work!

#### 🚀 Enhancement

- Allow for Access token to be provided for ArgoCD [#44](https://github.com/ejhayes/action-argocd-deploy/pull/44) ([@rfun](https://github.com/rfun) [@ejhayes](https://github.com/ejhayes))

#### 🐛 Bug Fix

- Feat: Source map support, required labels [#48](https://github.com/ejhayes/action-argocd-deploy/pull/48) ([@ejhayes](https://github.com/ejhayes))
- Feat: improved debug logging [#50](https://github.com/ejhayes/action-argocd-deploy/pull/50) ([@ejhayes](https://github.com/ejhayes))
- Feat: add additional debug logging when debug mode enabled [#49](https://github.com/ejhayes/action-argocd-deploy/pull/49) ([@ejhayes](https://github.com/ejhayes))
- Fix: access token [#47](https://github.com/ejhayes/action-argocd-deploy/pull/47) ([@ejhayes](https://github.com/ejhayes))

#### 📝 Documentation


#### 🔩 Dependency Updates

- Bump @actions/core from 1.9.1 to 1.10.0 [#8](https://github.com/ejhayes/action-argocd-deploy/pull/8) ([@dependabot[bot]](https://github.com/dependabot[bot]))

#### Authors: 3

- [@dependabot[bot]](https://github.com/dependabot[bot])
- Eric Hayes ([@ejhayes](https://github.com/ejhayes))
- Rohit Khattar ([@rfun](https://github.com/rfun))

---

# v1.0.1 (Fri Oct 07 2022)

#### 🐛 Bug Fix

- add dependabot, labeler configuration [#3](https://github.com/ejhayes/action-argocd-deploy/pull/3) ([@ejhayes](https://github.com/ejhayes))
- Source map support / manifest generation error messages [#4](https://github.com/ejhayes/action-argocd-deploy/pull/4) ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.0.0 (Wed Sep 28 2022)

#### 💥 Breaking Change

- Update readme contents to use v1 [#1](https://github.com/ejhayes/action-argocd-deploy/pull/1) ([@ejhayes](https://github.com/ejhayes))

#### 🐛 Bug Fix


#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v0.0.2 (Wed Sep 28 2022)

:tada: This release contains work from a new contributor! :tada:

Thank you, Eric Hayes ([@ejhayes](https://github.com/ejhayes)), for all your work!

#### ⚠️ Pushed to `main`

- Initial commit ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.1.2 (Tue Sep 27 2022)

#### ⚠️ Pushed to `main`

- adding changelog to release ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.1.1 (Tue Sep 27 2022)

#### ⚠️ Pushed to `main`

- fix name of pr ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.1.0 (Tue Sep 27 2022)

#### 🚀 Enhancement

- Mytest [#6](https://github.com/ejhayes/action-argocd-deploy/pull/6) ([@ejhayes](https://github.com/ejhayes))

#### ⚠️ Pushed to `main`

- fix name of pr ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.0.0 (Mon Sep 26 2022)

#### 💥 Breaking Change

- updating [#5](https://github.com/ejhayes/action-argocd-deploy/pull/5) ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v0.1.0 (Mon Sep 26 2022)

#### 🚀 Enhancement

- this is new [#4](https://github.com/ejhayes/action-argocd-deploy/pull/4) ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v0.0.1 (Mon Sep 26 2022)

:tada: This release contains work from a new contributor! :tada:

Thank you, Eric Hayes ([@ejhayes](https://github.com/ejhayes)), for all your work!

#### ⚠️ Pushed to `main`

- initial commit ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))

---

# v1.1.0 (Mon Sep 26 2022)

:tada: This release contains work from a new contributor! :tada:

Thank you, Eric Hayes ([@ejhayes](https://github.com/ejhayes)), for all your work!

#### 🚀 Enhancement

- typo change [#1](https://github.com/ejhayes/action-argocd-deploy/pull/1) ([@ejhayes](https://github.com/ejhayes))

#### ⚠️ Pushed to `main`

- removing changelog ([@ejhayes](https://github.com/ejhayes))
- Initial commit ([@ejhayes](https://github.com/ejhayes))

#### Authors: 1

- Eric Hayes ([@ejhayes](https://github.com/ejhayes))
Empty file added LICENSE
Empty file.
161 changes: 161 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# action-argocd-deploy

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

<!-- action-docs-description -->
## Description

This action calls the ArgoCD API to create/update an application


<!-- action-docs-description -->

## Quickstart

To use this in your projects:

### minimal example

Using [access token](https://argo-cd.readthedocs.io/en/latest/user-guide/commands/argocd_account_generate-token/):

```yaml
- uses: ejhayes/action-argocd-deploy@releases/v1
with:
accessToken: MY_ACCESS_TOKEN
baseUrl: http://argocd-api.example.com
name: 'my-service'
namespace: theNamespace
project: myproject
tokens: |
SOME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MY_TOKEN: someValue
valuesFile: ./values.yaml
info: |
environment: prod
```

Using username/password (or clientid/secret):

```yaml
- uses: ejhayes/action-argocd-deploy@releases/v1
with:
clientId: MY_USERNAME
clientSecret: MY_PASSWORD
baseUrl: http://argocd-api.example.com
name: 'my-service'
namespace: theNamespace
project: myproject
tokens: |
SOME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MY_TOKEN: someValue
valuesFile: ./values.yaml
info: |
environment: prod
```

**NOTE:** `valuesFile` will be interpolated using environment variables you specify. The example above would replace `__MY_TOKEN__` with `someValue`.

### fuller example

```yaml
on:
- deployment
- delete

jobs:
tester:
runs-on: ubuntu-latest
steps:
- uses: ejhayes/action-argocd-deploy@releases/v1
with:
clientId: ${{ secrets.ARGOCD_CLIENTID }}
clientSecret: ${{ secrets.ARGOCD_CLIENTSECRET }}
clusterName: 'default'
baseUrl: https://example.com
name: my-service
namespace: default
path: fixtures
project: default
valuesFile: fixtures/values.yml
tokens: |
MYSECRET: somestring-${{ secrets.GITHUB_TOKEN }}
OTHERTOKEN: theOtherValue
annotations: |
myannotation: "true"
labels: |
group: group-a
env: prod
info: |
rev: ${{ github.ref }}
sha: ${{ github.sha }}
```

Example `fixtures/values.yml` would contain:

```yaml
service:
someParam:
repository: ealen/echo-server:__OTHERTOKEN__
someSecret: __MYSECRET__
```

<!-- action-docs-inputs -->
## Inputs

| parameter | description | required | default |
| - | - | - | - |
| accessToken | ArgoCD access token | `false` | |
| action | Action to perform (upsert, delete) | `false` | upsert |
| annotations | Key/Value pair of annotations for the application | `false` | {} |
| baseUrl | ArgoCD base url to use | `true` | |
| clientId | ArgoCD Client Id / Username | `true` | |
| clientSecret | ArgoCD Client Secret / Password | `true` | |
| clusterName | Cluster name to deploy to | `true` | |
| dryRun | Dry run mode (do not create or delete anything) | `false` | false |
| info | Key/Value pair of argo info values | `false` | {} |
| labels | Key/Value pair of labels to apply to argo application | `false` | {} |
| name | Name of the application to create | `true` | |
| namespace | Namespace to deploy application to | `true` | |
| path | Path to helm chart | `false` | |
| project | Argo project to create application in | `true` | |
| tokens | Key/Value list of tokens to replace in helm chart | `false` | {} |
| valuesFile | Values file to pass to ArgoCD | `true` | |



<!-- action-docs-inputs -->

<!-- action-docs-outputs -->

<!-- action-docs-outputs -->

<!-- action-docs-runs -->
## Runs

This action is a `node16` action.


<!-- action-docs-runs -->

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/ejhayes"><img src="https://avatars.githubusercontent.com/u/310233?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eric Hayes</b></sub></a><br /><a href="https://github.com/ejhayes/action-argocd-deploy/commits?author=ejhayes" title="Documentation">📖</a> <a href="#infra-ejhayes" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/ejhayes/action-argocd-deploy/commits?author=ejhayes" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/rfun"><img src="https://avatars.githubusercontent.com/u/2608543?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rohit Khattar</b></sub></a><br /><a href="https://github.com/ejhayes/action-argocd-deploy/commits?author=rfun" title="Documentation">📖</a> <a href="#infra-rfun" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/ejhayes/action-argocd-deploy/commits?author=rfun" title="Code">💻</a></td>
</tr>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
Loading

0 comments on commit c725607

Please sign in to comment.