Skip to content

Commit cc1cd17

Browse files
committed
Add the endpoint that can be used to change baseUrl
Signed-off-by: Joao Pereira <joaopapereira@gmail.com>
1 parent 72fabc1 commit cc1cd17

7 files changed

Lines changed: 67206 additions & 13161 deletions

File tree

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ By default, installs latest versions of `ytt`, `kbld`, `kapp`, `kwt`, `imgpkg`,
1313

1414
```yaml
1515
steps:
16-
- uses: carvel-dev/setup-action@v2
16+
- uses: carvel-dev/setup-action@v3
1717
- run: |
1818
ytt version
1919
kbld version
@@ -23,7 +23,7 @@ steps:
2323

2424
```yaml
2525
steps:
26-
- uses: carvel-dev/setup-action@v2
26+
- uses: carvel-dev/setup-action@v3
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
- run: |
@@ -35,7 +35,7 @@ To install only specific apps:
3535

3636
```yaml
3737
steps:
38-
- uses: carvel-dev/setup-action@v2
38+
- uses: carvel-dev/setup-action@v3
3939
with:
4040
only: ytt, kbld
4141
- run: |
@@ -47,7 +47,7 @@ To exclude specific apps:
4747

4848
```yaml
4949
steps:
50-
- uses: carvel-dev/setup-action@v2
50+
- uses: carvel-dev/setup-action@v3
5151
with:
5252
exclude: kwt, vendir
5353
- run: |
@@ -59,7 +59,7 @@ To use a specific version of an app:
5959

6060
```yaml
6161
steps:
62-
- uses: carvel-dev/setup-action@v2
62+
- uses: carvel-dev/setup-action@v3
6363
with:
6464
only: ytt, kbld
6565
kbld: v0.28.0
@@ -68,6 +68,33 @@ steps:
6868
kbld version
6969
```
7070

71+
When you host the carvel repositories in your own github instance:
72+
73+
```yaml
74+
steps:
75+
- uses: carvel-dev/setup-action@v3
76+
with:
77+
instance: https://acme.github.com/api/v3
78+
token: token-for-your-instance
79+
- run: |
80+
ytt version
81+
kbld version
82+
```
83+
84+
When you are running the action in your own github instance and want to retrieve carvel from the github.com:
85+
86+
```yaml
87+
steps:
88+
- uses: carvel-dev/setup-action@v3
89+
with:
90+
token: TOKEN-FROM-GITHUB.COM
91+
- run: |
92+
ytt version
93+
kbld version
94+
```
95+
96+
97+
7198
## Node version support
7299

73100
Version `v3` requires a Node 24 runner. If you're using older self-hosted runners, you can still use `v2` for Node 20 support or `v1` for Node 16 support.

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
description: Github token to use to avoid rate limits
1010
required: false
1111
default: ""
12+
endpoint:
13+
description: Defines the API endpoint to use instead of the default GitHub API. Useful for GitHub Enterprise users if they have the carvel tools in their GitHub instance.
14+
required: false
15+
default: "https://api.github.com"
1216
only:
1317
description: List apps to download if you don't need all
1418
required: false

0 commit comments

Comments
 (0)