feat: example docker action

This commit is contained in:
Rowan Bohde 2024-04-24 18:47:16 -05:00
parent 76cd7e4d2d
commit 54b8fdc8f1
3 changed files with 17 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
# Container image that runs your code
FROM alpine:3.10
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]

6
action.yml Normal file
View File

@ -0,0 +1,6 @@
# action.yml
name: 'Test Docker'
description: 'Test Docker'
runs:
using: 'docker'
image: 'Dockerfile'

3
entrypoint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh -l
sleep 60