From the course: GitHub Actions Workshop: Create CI/CD Pipelines to Automate, Build, Test and Deploy your Application by Microsoft Press
Unlock this course with a free trial
Join today to access over 23,200 courses taught by industry experts.
From the course: GitHub Actions Workshop: Create CI/CD Pipelines to Automate, Build, Test and Deploy your Application by Microsoft Press
Start my 1-month free trial Buy for my team
Optimize your workflow with cache
“
- For this lab, let's go ahead and create a new repository and name it lesson7cache. Let's make sure it's a public repository and let's add a README file. And next let's click on Create repository. The first thing we're going to do in this lab is to create a requirements.txt file. So go ahead and create a new file and let's name it requirements.txt. And we're going to add some libraries to it. Feel free to add more than the one. I'm going to add, we're just going to make a job download these libraries and we're going to see how we can cache them. I've selected libraries from the Python package index and I looked for the ones related to machine learning and similar, which I suppose maybe some of the largest ones available. All right, once your file looks like that, go ahead and commit the changes. And now we're ready to create our workflow file. So go ahead and click on Add file, Create new file. Let's create the usual .github folder. /workflows. And let's go ahead and name this…
Contents
-
- GitHub Actions workshop: Introduction 3m 24s
-
- Learning objectives 1m 10s
- Understand DevOps 2m 23s
- Review the waterfall software development lifecycle 1m 38s
- Explore agile 2m 28s
- Review the DevOps lifecycle 4m 23s
-
- Learning objectives 1m 15s
- Review git commands 3m 29s
- Install and use GitHub Desktop 16m 10s
- (Locked) Review authentication in GitHub, part 1 2m 33s
- (Locked) Review authentication in GitHub, part 2 15m 27s
- (Locked) Compare git branching strategies 2m 25s
- (Locked) Examine the different merge methods in GitHub 3m 33s
- (Locked) Practice merging branches 18m 19s
-
- (Locked) Learning objectives 1m 15s
- (Locked) Analyze GitHub's version control system features, part 1 3m 13s
- (Locked) Analyze GitHub's version control system features, part 2 8m 10s
- (Locked) Understand pull requests, part 1 1m 36s
- (Locked) Understand pull requests, part 2 6m 40s
- (Locked) Explore the GitHub CLI 2m 15s
- (Locked) Install and use the GitHub CLI 16m 10s
- (Locked) Understand semantic versioning 3m 40s
-
- (Locked) Learning objectives 1m 5s
- (Locked) Learn YAML 2m 54s
- (Locked) Break down GitHub Actions workflows 3m 38s
- (Locked) Analyze workflow triggers, jobs, and steps 4m 51s
- (Locked) Create a simple workflow 6m 32s
- (Locked) Compare GitHub Actions runners 3m 22s
- (Locked) Set up a self-hosted runner 9m 30s
-
- (Locked) Learning objectives 1m 16s
- (Locked) Explore contexts 2m 45s
- (Locked) Review variables and secrets 4m 33s
- (Locked) Use variables and secrets in your workflow 9m 16s
- (Locked) Understand expressions 3m 33s
- (Locked) Review functions 2m 55s
- (Locked) Add functions and expressions to your workflow 15m 25s
-
- (Locked) Learning objectives 59s
- (Locked) Explore job concurrency, outputs, and dependencies 4m 47s
- (Locked) Run jobs within containers 4m 13s
- (Locked) Control job execution 10m 53s
- (Locked) Explore matrix strategies 3m 14s
- (Locked) Implement matrix strategies 6m 24s
-
- (Locked) Learning objectives 1m 27s
- (Locked) Understand actions in GitHub Actions 4m 11s
- (Locked) Discover and use actions in GitHub Actions 16m 56s
- (Locked) Learn about artifacts and cache 4m 27s
- (Locked) Share data between jobs with artifacts 9m 37s
- (Locked) Optimize your workflow with cache 12m 43s
- (Locked) Explore the metadata file and composite actions, part 1 3m 46s
- (Locked) Explore the metadata file and composite actions, part 2 11m 17s
- (Locked) Learn custom JavaScript actions 3m 32s
- (Locked) Create a JavaScript action 23m 35s
- (Locked) Examine custom Docker container actions 3m 21s
- (Locked) Create Docker container actions 12m 17s
-
- (Locked) Learning objectives 1m 34s
- (Locked) Set up unit testing and code coverage, part 1 2m 55s
- (Locked) Set up unit testing and code coverage, part 2 21m 43s
- (Locked) Discover code scanning, part 1 2m 41s
- (Locked) Discover code scanning, part 2 3m 12s
- (Locked) Explore GitHub Dependabot and secret scanning, part 1 3m 6s
- (Locked) Explore GitHub Dependabot and secret scanning, part 2 10m 21s
- (Locked) Understand code owners 2m 21s
- (Locked) Set up code owners 4m 17s
- (Locked) Configure branch protection, part 1 4m 14s
- (Locked) Configure branch protection, part 2 10m 55s
-
- (Locked) Learning objectives 1m 17s
- (Locked) Review the release stage 1m 46s
- (Locked) Create releases with the GitHub UI 1m 56s
- (Locked) Create releases in the GitHub CLI 15m 19s
- (Locked) Learn about packages and package registries 3m 45s
- (Locked) Create and publish a package to GitHub packages 13m 14s
- (Locked) Create a Dockerfile and build a container image, part 1 4m 50s
- (Locked) Create a Dockerfile and build a container image, part 2 21m 18s
- (Locked) Learn about containers and container registries, part 1 4m 27s
- (Locked) Learn about containers and container registries, part 2 8m 40s
-
- (Locked) Learning objectives 43s
- (Locked) Understand the different deployment targets 1m 13s
- (Locked) Break down different deployment environments 2m 26s
- (Locked) Create an environment and deploy your application 21m 38s
-
- (Locked) GitHub Actions workshop: Summary 2m 32s