在GitHub托管跑步者上运行的GitHub动作中使用Docker-Hub-image

发布于 2025-02-08 19:45:38 字数 305 浏览 1 评论 0 原文

GitHub托管跑步者是否支持Do​​cker Hub上可用的特定Docker图像的直接使用?

例如,在自托管的gitlab-runner上使用docker映像“ aergus/latex”很容易:

job_name:
    image: "aergus/latex"

是否可以在Github托管的跑步者上做类似的事情? 即,而不是使用“ Ubuntu-Lastest”或“ Windows-Latest”,而是直接指定Docker映像?

Do the Github-hosted runners support direct use of specific docker images available on docker hub?

For example, using the docker image "aergus/latex" on a self-hosted Gitlab-runner is easy as:

job_name:
    image: "aergus/latex"

Is it possible to do something similar on Github-hosted runners?
I.e., instead of using "ubuntu-lastest" or "windows-latest", directly specify a docker image?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玩世 2025-02-15 19:45:38

您可以运行A 喜欢:

jobs:
  myjob:
    runs-on: ubuntu-latest
    container:
      image: node:14.16
    steps:
      - run: uname

请注意,跑步者必须是Ubuntu。

You can run a job in a container like so:

jobs:
  myjob:
    runs-on: ubuntu-latest
    container:
      image: node:14.16
    steps:
      - run: uname

Note that the runner must be ubuntu.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文