From the course: Coding Exercises: GitHub

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Create a Docker container action

Create a Docker container action - GitHub Tutorial

From the course: 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…

Contents