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 - 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
-
-
-
Clone a repo with an empty history2m 28s
-
(Locked)
How do you merge a linear history?4m 22s
-
(Locked)
Add an issue directly from the Terminal2m 56s
-
(Locked)
Deleting all commit history1m 56s
-
(Locked)
Fix a committed password4m 32s
-
(Locked)
Create a monorepo3m 18s
-
(Locked)
Update certain branches3m 18s
-
(Locked)
Process all branches3m 48s
-
(Locked)
Run accessibility audit on push6m 43s
-
(Locked)
Use hidden secrets in projects5m 29s
-
(Locked)
Run actions on a schedule3m 13s
-
(Locked)
Create a Docker container action5m 25s
-
(Locked)
Build and deploy your sites3m 55s
-