-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
49 lines (49 loc) · 1.49 KB
/
action.yaml
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
44
45
46
47
48
49
name: 'Devtron Deploy Action'
description: 'An action to deploy using Devtron with optional commit details'
author: 'Your Name'
inputs:
DEVTRON_URL:
description: 'The URL of the Devtron instance'
required: true
DEVTRON_API_TOKEN:
description: 'The API token for Devtron'
required: true
IMAGE:
description: 'The Docker image to be deployed'
required: true
ID:
description: 'The ID for the Devtron orchestrator'
required: true
COMMIT_HASH:
description: 'The commit hash (optional)'
required: false
MESSAGE:
description: 'The commit message (optional)'
required: false
AUTHOR_NAME:
description: 'The author name of the commit (optional)'
required: false
COMMIT_TIME:
description: 'The commit time (optional)'
required: false
runs:
using: 'composite'
steps:
- run: ./scripts/deploy.sh
shell: bash
env:
DEVTRON_URL: ${{ inputs.DEVTRON_URL }}
DEVTRON_API_TOKEN: ${{ inputs.DEVTRON_API_TOKEN }}
IMAGE: ${{ inputs.IMAGE }}
ID: ${{ inputs.ID }}
COMMIT_HASH: ${{ inputs.COMMIT_HASH }}
MESSAGE: ${{ inputs.MESSAGE }}
AUTHOR_NAME: ${{ inputs.AUTHOR_NAME }}
COMMIT_TIME: ${{ inputs.COMMIT_TIME }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_MESSAGE: ${{ github.event.head_commit.message }}
GITHUB_AUTHOR: ${{ github.event.head_commit.author.name }}
GITHUB_COMMIT_TIME: ${{ github.event.head_commit.timestamp }}
branding:
icon: 'rocket'
color: 'blue'