https://github.com/linuxsuren/github-action-workflow
GitHub Actions compitable workflows
https://github.com/linuxsuren/github-action-workflow
Last synced: about 1 year ago
JSON representation
GitHub Actions compitable workflows
- Host: GitHub
- URL: https://github.com/linuxsuren/github-action-workflow
- Owner: LinuxSuRen
- License: mit
- Created: 2022-12-11T12:08:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T04:34:09.000Z (over 2 years ago)
- Last Synced: 2025-02-25T10:51:38.937Z (about 1 year ago)
- Language: Go
- Size: 77.1 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/LinuxSuRen/github-action-workflow)
# github-action-workflow
GitHub Actions compatible workflows
## Feature
* Convert GitHub Workflows to Argo Workflows
* Argo CD Config Management Plugin (CMP)
## Usage
You can use it as a CLI:
```shell
gaw convert .github/workflows/pull-request.yaml
```
you can install it via [hd](https://github.com/LinuxSuRen/http-downloader):
```shell
hd i gaw
```
## As CMP
This repository could be [Config Management Plugin](https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/#option-2-configure-plugin-via-sidecar) as well.
First, please patch `argocd-repo-server` with the following snippet:
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
namespace: argocd
spec:
template:
spec:
containers:
- args:
- --loglevel
- debug
command:
- /var/run/argocd/argocd-cmp-server
image: ghcr.io/linuxsuren/github-action-workflow:master
imagePullPolicy: IfNotPresent
name: tool
resources: {}
securityContext:
runAsNonRoot: true
runAsUser: 999
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
```
then, create an Application on the Argo CD UI or CLI:
```shell
cat <