docker - How to create a Docker container GitHub Action to provide executable for the main workflow?
问题描述
I want to implement my own Docker GitHub Action that should provide an executable called my-tool
which I can use in my workflows. Ideally, I want to be able to write the following config in my workflow:
- name: Setup My Tool
uses: actions/my-tool@v1
- name: Run My Tool
run: my-tool --option1 --option2 arg1 arg2
My custom action that provides my-tool
is responsible for creating the my-tool
executable (either by downloading it or building from sources). And I want my action to make this executable available within the rest of my workflow. However, I can't find any way to copy my executable from the docker container back to host that runs my action. How can I transfer my-tool
from the Docker GitHub Action to my workflow?
解决方案
推荐阅读
- reactjs - 使用 react 实现客户端过滤
- reactjs - 在 React 中循环两个数组以返回表
- react-native - 通过路由 props 从 Child 到 Parent 共享状态
- android - Flutter image_picker 权限找不到有效的活动来处理请求
- c# - 如何使用 IServiceScopeFactory.CreateScope
- ios - 当我们在iOS13中将设备设置为横向模式时,UITabBarItem标题文本未居中对齐
- python - Pandas:有条件地组合多索引数据帧
- core-data - SwiftUI:屏幕锁定后列表没有核心数据对象,空视图
- sql-server - 我们如何在 MSSQL 查询中聚合字符串数据类型
- python - 什么可能导致python关闭而没有任何错误?