mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
Add cacerts parameter, which can copy existing cacerts into JDK
This commit is contained in:
parent
d53b046579
commit
0d42bcacb6
11 changed files with 2167 additions and 2075 deletions
|
@ -120,6 +120,19 @@ steps:
|
|||
- run: java -cp java HelloWorldApp
|
||||
```
|
||||
|
||||
## Using existing cacerts file
|
||||
In enterprise environment, custom CA truststore is often used. By specifying source file action can copy the `cacerts`
|
||||
into new Java installation automatically.
|
||||
|
||||
```yaml
|
||||
- uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: '<distribution>'
|
||||
java-version: '11'
|
||||
cacerts: '/etc/ssl/certs/java/cacerts'
|
||||
- run: java -cp java HelloWorldApp
|
||||
```
|
||||
|
||||
## Testing against different Java distributions
|
||||
**NOTE:** The different distributors can provide discrepant list of available versions / supported configurations. Please refer to the official documentation to see the list of supported versions.
|
||||
```yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue