Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri committed Jan 3, 2024
1 parent befb440 commit b07a74d
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 18 deletions.
28 changes: 28 additions & 0 deletions actions/clusters-add/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# action.yml
name: "Clusters: Add to JSON file"
inputs:
config-file:
description: Path to the clusters JSON config data file
required: true
name:
description: Name of the new cluster
required: true
environment:
description: Environment of the cluster
required: true
location:
description: Azure location of the cluster
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- clusters:add
- --config-file
- ${{ inputs.config-file }}
- --name
- ${{ inputs.name }}
- --environment
- ${{ inputs.environment }}
- --location
- ${{ inputs.location }}
18 changes: 18 additions & 0 deletions actions/clusters-delete/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# action.yml
name: "Clusters: Delete from JSON file"
inputs:
config-file:
description: Path to the clusters JSON config data file
required: true
name:
description: Name of the cluster
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- clusters:delete
- --config-file
- ${{ inputs.config-file }}
- --name
- ${{ inputs.name }}
19 changes: 19 additions & 0 deletions actions/fronthub-add-dns-zone/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# action.yml
name: "Fronthub: Add DNS Zone to JSON file"
inputs:
config-file:
description: Path to the fronthub JSON config data file
required: true
domain:
description: Name of the new domain
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- fronthub:add-dns-zone
- --config-file
- ${{ inputs.config-file }}
- --domain
- ${{ inputs.domain }}

29 changes: 29 additions & 0 deletions actions/fronthub-add-endpoint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# action.yml
name: "Fronthub: Add Endpoint to JSON file"
inputs:
config-file:
description: Path to the fronthub JSON config data file
required: true
domain:
description: Name of the domain
required: true
url:
description: "URL path of the endpoint, for example: *.example.com/path/*"
required: true
cluster:
description: Name of the cluster in IDP
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- fronthub:add-endpoint
- --config-file
- ${{ inputs.config-file }}
- --domain
- ${{ inputs.domain }}
- --url
- ${{ inputs.url }}
- --cluster
- ${{ inputs.cluster }}

19 changes: 19 additions & 0 deletions actions/fronthub-delete-dns-zone/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# action.yml
name: "Fronthub: Delete DNS Zone from JSON file"
inputs:
config-file:
description: Path to the fronthub JSON config data file
required: true
domain:
description: Name of the domain
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- fronthub:delete-dns-zone
- --config-file
- ${{ inputs.config-file }}
- --domain
- ${{ inputs.domain }}

23 changes: 23 additions & 0 deletions actions/fronthub-delete-endpoint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# action.yml
name: "Fronthub: Delete Endpoint from JSON file"
inputs:
config-file:
description: Path to the fronthub JSON config data file
required: true
domain:
description: Name of the domain
required: true
url:
description: "URL path of the endpoint, for example: *.example.com/path/*"
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- fronthub:delete-endpoint
- --config-file
- ${{ inputs.config-file }}
- --domain
- ${{ inputs.domain }}
- --url
- ${{ inputs.url }}
18 changes: 0 additions & 18 deletions actions/fronthub-prepare/action.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions actions/fronthub-transform/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# action.yml
name: "Fronthub: Transform config"
inputs:
input-file:
description: Path to the fronthub JSON config data file
required: true
output-file:
description: Path to the transformed module-prepared output to store
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- fronthub:transform
- --input-file
- ${{ inputs.input-file }}
- --output-file
- ${{ inputs.output-file }}

0 comments on commit b07a74d

Please sign in to comment.