免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…
内容
-
-
-
Clone a repo with an empty history2 分钟 28 秒
-
(已锁定)
How do you merge a linear history?4 分钟 22 秒
-
(已锁定)
Add an issue directly from the Terminal2 分钟 56 秒
-
(已锁定)
Deleting all commit history1 分钟 56 秒
-
(已锁定)
Fix a committed password4 分钟 32 秒
-
(已锁定)
Create a monorepo3 分钟 18 秒
-
(已锁定)
Update certain branches3 分钟 18 秒
-
(已锁定)
Process all branches3 分钟 48 秒
-
(已锁定)
Run accessibility audit on push6 分钟 43 秒
-
(已锁定)
Use hidden secrets in projects5 分钟 29 秒
-
(已锁定)
Run actions on a schedule3 分钟 13 秒
-
(已锁定)
Create a Docker container action5 分钟 25 秒
-
(已锁定)
Build and deploy your sites3 分钟 55 秒
-