Skip to content

Commit 72c4e20

Browse files
author
Chris Wiechmann
committed
Prepare to release
1 parent 52d206b commit 72c4e20

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM adoptopenjdk/openjdk11:debianslim-jre
22

3-
RUN printenv
4-
53
# Get APIM-CLI release package
64
ADD https://github.com/Axway-API-Management-Plus/apim-cli/releases/download/apimcli-1.5.1/axway-apimcli-1.5.1.tar.gz /
75

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Alternatively, you can call the APIM CLI directly according to your needs.
1717

1818
**Required** The password to use for the API-Manager.
1919

20+
## `apimPort`
21+
22+
The API-Manager port.
23+
2024
## `apimExtraArgs`
2125

2226
**Required** Some extra parameters which should be used by the APIM-CLI. For instance '-port 443', '-force' or '-returnCodeMapping 10:0'
@@ -37,16 +41,34 @@ The directory containing your applications. Each application in a separate direc
3741

3842
The directory containing your users. Each user in a separate directory.
3943

44+
## `apimCLICommand`
45+
46+
Run an APIM-CLI command. For example: 'apim api check-certs'. You may combine this with apimExtraArgs depending on you the command you use.
47+
4048
## Example usage
4149

42-
uses: Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
4350
```yaml
51+
- name: Import APIs and Applications
52+
uses: Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
4453
with:
4554
apimHostname: 'manager.customer.com'
4655
apimUsername: 'apiadmin'
4756
apimPassword: '1234567890'
4857
apimExtraArgs: '-port 443 -force -returnCodeMapping 10:0'
4958
apiDirectory: 'axway/api-management/APIs'
59+
appDirectory: 'axway/api-management/Apps'
5060
env:
5161
BACKEND_HOST: 'http://mocked-apis:8280'
62+
```
63+
64+
```yaml
65+
- name: Validate certificates
66+
uses: Axway-API-Management-Plus/apim-cli-github-action@v1.5.1
67+
with:
68+
apimHostname: '${{ github.event.inputs.apimHost }}'
69+
apimPort: "443"
70+
apimUsername: ${{ github.event.inputs.apimUsername }}
71+
apimPassword: ${{ github.event.inputs.apimPassword }}
72+
apimCLICommand: 'api check-certs'
73+
apimExtraArgs: '-days 60'
5274
```

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
required: true
1212
apimPort:
1313
description: "The API-Manager port."
14-
required: true
14+
required: false
1515
default: "8075"
1616
apimUsername:
1717
description: "The API-Manager username."

0 commit comments

Comments
 (0)