-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
76 lines (73 loc) · 2.1 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 'Enigma Docker Build and Publish'
description: 'Builds, scans, tags, and pushes Docker images using the Enigma tool'
inputs:
command:
description: 'Command to run (bake or publish)'
required: true
DOCKER_IMAGE:
description: 'Docker image name'
required: true
DOCKER_TAG:
description: 'Docker image tag'
required: true
CLEANUP:
description: 'Cleanup after push (true or false)'
required: false
default: 'false'
AWS_REGION:
description: 'AWS Region'
required: false
AWS_ACCOUNT_ID:
description: 'AWS Account ID'
required: false
GCP_PROJECT_ID:
description: 'GCP Project ID'
required: false
GCP_REGION:
description: 'GCP Region'
required: false
DOCKER_USERNAME:
description: 'Docker Hub username'
required: false
DOCKER_PASSWORD:
description: 'Docker Hub password'
required: false
TOKEN:
description: 'GitHub Token'
required: false
GITHUB_USERNAME:
description: 'GitHub Username'
required: false
AZURE_REGISTRY_NAME:
description: 'Azure Registry name.'
required: false
AZURE_CLIENT_ID:
description: 'Client ID'
required: false
AZURE_TENANT_ID:
description: 'Tenant ID'
required: false
AZURE_CLIENT_SECRET:
description: 'Client Secret'
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/clouddrove/enigma:v0.0.6'
env:
DOCKER_IMAGE: ${{ inputs.DOCKER_IMAGE }}
DOCKER_TAG: ${{ inputs.DOCKER_TAG }}
AWS_ACCOUNT_ID: ${{ inputs.AWS_ACCOUNT_ID }}
AWS_REGION: ${{ inputs.AWS_REGION }}
GCP_PROJECT_ID: ${{ inputs.GCP_PROJECT_ID }}
GCP_REGION: ${{ inputs.GCP_REGION }}
CLEANUP: ${{ inputs.CLEANUP }}
DOCKER_USERNAME: ${{ inputs.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ inputs.DOCKER_PASSWORD }}
TOKEN: ${{ inputs.TOKEN }}
GITHUB_USERNAME: ${{ inputs.GITHUB_USERNAME }}
AZURE_REGISTRY_NAME: ${{ inputs.AZURE_REGISTRY_NAME }}
AZURE_CLIENT_ID: ${{ inputs.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ inputs.AZURE_TENANT_ID }}
AZURE_CLIENT_SECRET: ${{ inputs.AZURE_CLIENT_SECRET }}
args:
- ${{ inputs.command }}