Learning GitHub Actions

by Brent Laster

Software Development

Book Details

Book Title

Learning GitHub Actions: Automation and Integration of CI/CD with GitHub

Author

Brent Laster

Publisher

O'Reilly Media

Publication Date

2023

ISBN

9781098131074

Number of Pages

572

Language

English

Format

PDF

File Size

9.08MB

Subject

GitHub

Table of Contents

  • Contents
  • Foreword
  • Preface
  • Part I. Foundations
  • Chapter 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?
  • Conclusion
  • Chapter 2. How Does Actions Work?
  • An Overview
  • Triggering Workflows
  • Components
  • Workflow Execution
  • Conclusion
  • Chapter 3. What’s in an action?
  • The Structure of an action
  • Interfacing with actions
  • Using actions
  • Public actions and the Marketplace
  • Conclusion
  • Chapter 4. Working with Workflows
  • Creating the First Workflow in a Repository
  • Committing the Initial Workflow
  • Using the VS Code GitHub Actions Extension
  • Conclusion
  • Chapter 5. Runners
  • GitHub-Hosted Runners
  • Self-Hosted Runners
  • Autoscaling Self-Hosted Runners
  • Just-in-Time Runners
  • Conclusion
  • Part II. Building Blocks
  • Chapter 6. Managing Your Workflow Environments
  • Naming Your Workflow and Workflow Runs
  • Contexts
  • Environment Variables
  • Secrets and Configuration Variables
  • Managing Permissions for Your Workflow
  • Deployment Environments
  • Conclusion
  • Chapter 7. Managing Data Within Workflows
  • Working with Inputs and Outputs in Workflows
  • Defining Artifacts
  • Uploading and Downloading Artifacts
  • Using Caches in GitHub Actions
  • Conclusion
  • Chapter 8. Managing Workflow Execution
  • Advanced Triggering from Changes
  • Triggering Workflows Without a Change
  • Dealing with Concurrency
  • Running a Workflow with a Matrix
  • Workflow Functions
  • Conclusion
  • Part III. Security and Monitoring
  • Chapter 9. Actions and Security
  • Security by Configuration
  • Security by Design
  • Security by Monitoring
  • Conclusion
  • Chapter 10. Monitoring, Logging, and Debugging
  • Gaining More Observability
  • Working with Past States
  • Debugging Workflows
  • Augmenting and Customizing Logging
  • Conclusion
  • Part IV. Advanced Topics
  • Chapter 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
  • Conclusion
  • Chapter 12. Advanced Workflows
  • Creating Your Own Starter Workflows
  • Reusable Workflows
  • Required Workflows
  • Conclusion
  • Chapter 13. Advanced Workflow Techniques
  • Driving GitHub from Your Workflow
  • Using a Matrix Strategy to Automatically Create Jobs
  • Using Containers in Your Workflow
  • Conclusion
  • Chapter 14. Migrating to GitHub Actions
  • Prep
  • Azure Pipelines
  • CircleCI
  • GitLab CI/CD
  • Jenkins
  • Travis CI
  • GitHub Actions Importer
  • Conclusion
  • Index
  • About the Author