forked from burnt-labs/heighliner-action
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
148 lines (114 loc) · 5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: Heighliner image build
description: Build and push Docker images with heighliner
author: bigs
inputs:
github-token:
description: "GitHub Token used to authenticate against a repository for Git context"
default: ${{ github.token }}
required: false
heighliner-owner:
description: "GitHub owner name of the heighliner repo to use"
default: strangelove-ventures
required: false
heighliner-repo:
description: "GitHub repo name of the heighliner repo to use"
default: heighliner
required: false
clone-key:
description: "base64 encoded ssh key used for authenticating a private repository"
required: false
heighliner-tag:
description: "Name of the heighliner tag to use from GitHub (defaults to latest)"
required: false
chain:
description: "Name of the chain (per chains.yaml) to build"
required: true
chains-spec-file:
description: "Local path to chains.yaml file"
required: false
local:
description: "Build image from local checked out repository (any non empty value is evaluated as true)"
default: "false"
required: false
tag:
description: "Resulting docker image tag (default derived from git ref)"
required: false
org:
description: "GitHub organization override for building from a fork"
required: false
registry:
description: "Docker container registry for pushing images"
required: false
default: ghcr.io/${{ github.repository_owner }}
buildkit:
description: "User docker buildkit for building images"
required: false
default: "true"
build-dir:
description: "Custom build directory, relative from root of repository"
required: false
buildkit-tag:
description: "Name of the buildkit tag to use from GitHub (defaults to latest)"
required: false
buildkit-address:
description: "Address of the buildkit socket, can be unix, tcp, ssl (default \"unix:///run/buildkit/buildkitd.sock\")"
required: false
default: tcp://127.0.0.1:8125
platform:
description: "Comma separated list of platforms to build containers for"
required: false
repo-host:
description: "By default, this is 'github.com', but use this field to override. For example 'gitlab.com'."
required: false
github-organization:
description: "The github owner (user/organization) of the chain source code."
required: false
default: ${{ github.repository_owner }}
github-repo:
description: "The github repository name of the chain source code."
required: false
default: ${{ github.event.repository.name }}
git-ref:
description: "Github short ref to build (branch, tag)"
required: false
default: ${{ github.ref_name }}
dockerfile:
description: "Which dockerfile strategy to use (folder names under dockerfile/). OPTIONS: cosmos, cargo, imported, or none. Use imported if you are importing an existing public docker image as a base for the heighliner image. Use none if you are not able to build the chain binary from source and need to download binaries into the image instead. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
build-env:
description: "Environment variables to be created during the build. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
pre-build:
description: "Any extra arguments needed to build the chain binary. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
build-target:
description: "The build command specific to the chosen dockerfile. For cosmos, likely make install. For cargo, likely build --release. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
binaries:
description: "The location of where the the build target places the binarie(s). Adding a ':' after the path allows for the ability to rename the binary. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
libraries:
description: "Any extra libraries need to run the binary. In addition to the binary itself, these will be copied over to the final image. Providing this option will override the default chains.yaml with a custom chain spec."
required: false
tar-export-path:
description: "File path to export built image as docker tarball. This should end with a .tar extension (ex: docker-image.tar)"
required: false
skip:
description: "Skip pushing images to registry"
required: false
default: "false"
additional-args:
description: "Additional arguments to pass to heighliner build command"
required: false
outputs:
imageid:
description: "The docker image ID of the built image"
digest:
description: "The docker image digest of the built image"
metadata:
description: "The JSON metadata of the built image"
tag:
description: "The tag applied to the built image"
runs:
using: 'node20'
main: 'dist/index.js'