Skip to content

Commit c5c3022

Browse files
author
rathnapandi
committed
- Mount volume
1 parent 75f28fc commit c5c3022

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Container image that runs your code
2+
FROM ghcr.io/axway-api-management-plus/apimcli:1.14.7
3+
4+
# Copies your code file from your action repository to the filesystem path `/` of the container
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
8+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
9+
ENTRYPOINT ["/entrypoint.sh"]

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212

1313
runs:
1414
using: "docker"
15-
image: "docker://ghcr.io/axway-api-management-plus/apimcli:1.14.7"
15+
image: "Dockerfile"
1616
volumes:
1717
- ./:/opt/apim-cli/data
1818
args:

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -l
2+
3+
echo "Hello $1"
4+
time=$(date)
5+
echo "time=$time" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)