kuxiade / hello-world-docker-action

Creating a Docker container action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello world docker action

This action prints "Hello World" or "Hello" + the name of a person to greet to the log.

Inputs

who-to-greet

Required The name of the person to greet. Default "World".

Outputs

time

The time we greeted you.

Example usage

uses: kuxiade/hello-world-docker-action@v1
with:
  who-to-greet: 'Mona the Octocat'

注意

  1. 本仓库 action - kuxiade/hello-world-docker-action 作为 action 时,必需的有效文件实际上只有该仓库根目录下的 Dockerfileaction.ymlentrypoint.sh 这三个文件。

  2. .github/workflows 目录下的文件只是作为测试该仓库作为 action 工作时是否有效,可以删除 .github/workflows 下的所有文件,或者直接删除 .github 文件夹,这样做不会影响该仓库作为 action 的功能。

  3. doc 文件夹下的文件作为补充文档,对创建 action 来说非必需,同样可以删除 doc 文件夹。

  4. README.md 作为说明文档,对创建 action 来说非必需,一样可以删除。不过说明文档还是非常重要的,方便其他用户使用该 action。

About

Creating a Docker container action


Languages

Language:Dockerfile 78.8%Language:Shell 21.2%