Githubs actions training


Here i am not able to understand what are we tring to od . We are executing the build command where is the docker file to build the image ?

More i don’t see yml files attached to the course so that we can copy and test ?

It’s not doing anything, really. it’s calling echo that prints out some docker commands. Is this from the Git Actions course? If so, could you please give me a link to where this comes from.

yes this is from github actions training GitHub Actions | KodeKloud

OK, with the link I see what the instructor is doing here. He starts out with a actions file that embeds a password in it, and demonstrates over the course of the lecture how you substitute the embedded secret (which you don’t want to check into source control) with a secret that’s injected from Github’s store of secrets for the repo. The version you’re showing above is the “before” picture. Later in the lecture, he’ll replace the environment variable with a secret reference, which is the preferred way of doing it.