课程: Coding Exercises: GitHub

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Create a Docker container action

Create a Docker container action - GitHub教程

课程: Coding Exercises: GitHub

Create a Docker container action

(playful music) - [Ray] Actions are great, but the syntax for running commands can be a bit limiting. Plus, they're a little bit hard to share. So, you can create Actions more explicitly by using Docker containers, and then, having them execute your Shell Scripts. But how would you do something like that? Now, I'll give you a couple of minutes to think about how you may solve something like this. (playful music) Now, you can take a look at an example of how to do this in this action that I've created called copy-to-branches. You may recognize that this code is similar to what we were doing when we were creating one of the bash scripts. The difference is that our bash script is not going to be in this file called entrypoint.sh. Now, we have to add a few additional files. This is a pretty normal repository with a README license, as well as the gitignore file. But the rest of the files that you're going to need, start…

内容