Automate your software development processes with GitHub Actions, the continuous integration and continuous delivery platform that integrates seamlessly with GitHub. With this practical book, open source author, trainer, and DevOps director Brent Laster explains everything you need to know about using and getting value from GitHub Actions. You'll learn what actions and workflows are and how they can be used, created, and incorporated into your processes to simplify, standardize, and automate your work in GitHub.
This book explains the platform, components, use cases, implementation, and integration points of actions, so you can leverage them to provide the functionality and features needed in today's complex pipelines and software development processes. You'll learn how to design and implement automated workflows that respond to common events like pushes, pull requests, and review updates. You'll understand how to use the components of the GitHub Actions platform to gain maximum automation and benefit.
With this book, you will:
- Learn what GitHub Actions are, the various use cases for them, and how to incorporate them into your processes
- Understand GitHub Actions' structure, syntax, and semantics
- Automate processes and implement functionality
- Troubleshoot and debug workflows that use actions
- Combine actions with GitHub APIs and other integration options
- Identify ways to securely implement workflows with GitHub Actions
- Understand how GitHub Actions compares to other options
Table of contents
- I. Foundations
1. The Basics
- What Is GitHub Actions?
- What Are the Use Cases for GitHub Actions?
- What Costs Are Involved?
- When Does Moving to GitHub Actions Make Sense?
- 2. How Does Actions Work?
- 3. What’s in an action?
- 4. Working with Workflows
- GitHub-Hosted Runners
- Self-Hosted Runners
- Autoscaling Self-Hosted Runners
- Just-in-Time Runners
- II. Building Blocks
- 6. Managing Your Workflow Environments
7. Managing Data Within Workflows
- Working with Inputs and Outputs in Workflows
- Defining Artifacts
- Uploading and Downloading Artifacts
- Using Caches in GitHub Actions
- 8. Managing Workflow Execution
- III. Security and Monitoring
9. Actions and Security
- Security by Configuration
- Security by Design
- Security by Monitoring
10. Monitoring, Logging, and Debugging
- Gaining More Observability
- Working with Past States
- Debugging Workflows
- Augmenting and Customizing Logging
- IV. Advanced Topics
11. Creating Custom actions
- Anatomy of an action
- Types of Actions
- Completing Your Action Creation
- Publishing Actions on the GitHub Marketplace
- The Actions Toolkit
- Local actions
- 12. Advanced Workflows
13. Advanced Workflow Techniques
- Driving GitHub from Your Workflow
- Using a Matrix Strategy to Automatically Create Jobs
- Using Containers in Your Workflow
14. Migrating to GitHub Actions
- Azure Pipelines
- GitLab CI/CD
- Travis CI
- GitHub Actions Importer
- About the Author
- Title: Learning GitHub Actions
- Release date: August 2023
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098131074
You might also like
This book teaches Git in a simple, visual, and tangible manner so that you can build …
Hands-on GitHub Actions: Implement CI/CD with GitHub Action Workflows for Your Applications
Implement continuous integration/continuous delivery (CI/CD) workflows for any application you develop through GitHub Actions. This book …
Go is rapidly becoming the preferred language for building web services. While there are plenty of …
Clean Code Fundamentals
Expanded Edition (Updated February 2022) Updated with episodes from SOLID Principles and Advanced TDD in the …