-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (40 loc) · 1.12 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 'argocd-app-sync'
description: 'A GitHub action that syncs ArgoCD applications'
author: 'OpsVerse (https://opsverse.io)'
branding:
icon: 'activity'
color: 'green'
inputs:
address:
description: "ArgoCD server address"
required: true
token:
description: "ArgoCD token"
required: true
action:
description: "Action name"
required: true
appName:
description: "Application name to sync"
required: true
image:
description: "Image tag for the binary"
required: false
default: "latest"
disableTlsVerification:
description: "Disable TLS Verification"
required: true
default: "false"
runs:
using: "composite"
steps:
- name: Run argocd-actions CLI from the image for GH image registry
run: |
docker run --rm -i registry.devopsnow.io/public/argocd-sync:${{ inputs.image }} \
${{ inputs.action }} \
--application=${{ inputs.appName }} \
--token=${{ inputs.token }} \
--address=${{ inputs.address }} \
--disableTlsVerification=${{ inputs.disableTlsVerification }} \
--logLevel=debug
shell: sh