GitHub Actions Cookbook: A practical guide to automating repetitive tasks and streamlining your development process

Kaufmann, Michael

  • 出版商: Packt Publishing
  • 出版日期: 2024-04-30
  • 售價: $1,580
  • 貴賓價: 9.5$1,501
  • 語言: 英文
  • 頁數: 250
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1835468942
  • ISBN-13: 9781835468944
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Authored by a Microsoft Regional Director, this book shows you how to leverage the power of the community-driven GitHub Actions workflow platform to automate repetitive engineering tasks

Key Features
  • Automate CI/CD workflows and deploy securely to cloud providers like Azure, AWS, or GCP using OpenID
  • Create your own custom actions with Docker, JavaScript programming, or shell scripts and share them with others
  • Discover ways to automate complex scenarios beyond the basic ones documented in GitHub
Book Description

Say goodbye to tedious tasks! GitHub Actions is a powerful workflow engine that automates everything in the GitHub ecosystem, letting you focus on what matters most.

This book explains the GitHub Actions workflow syntax, the different kinds of actions, and how GitHub-hosted and self-hosted workflow runners work. You'll get tips on how to author and debug GitHub Actions and workflows with Visual Studio Code (VS Code), run them locally, and leverage the power of GitHub Copilot. The book uses hands-on examples to walk you through real-world use cases that will help you automate the entire release process. You'll cover everything, from automating the generation of release notes to building and testing your software and deploying securely to Azure, Amazon Web Services (AWS), or Google Cloud using OpenID Connect (OIDC), secrets, variables, environments, and approval checks.

The book goes beyond CI/CD by demonstrating recipes to execute IssueOps and automate other repetitive tasks using the GitHub CLI, GitHub APIs and SDKs, and GitHub Token. You'll learn how to build your own actions and reusable workflows to share building blocks with the community or within your organization.

By the end of this GitHub book, you'll have gained the skills you need to automate tasks and work with remarkable efficiency and agility.

What you will learn
  • Author and debug GitHub Actions workflows with VS Code and Copilot
  • Run your workflows on GitHub-provided VMs (Linux, Windows, and macOS) or host your own runners in your infrastructure
  • Understand how to secure your workflows with GitHub Actions
  • Boost your productivity by automating workflows using GitHub's powerful tools, such as the CLI, APIs, SDKs, and access tokens
  • Deploy to any cloud and platform in a secure and reliable way with staged or ring-based deployments
Who this book is for

This book is for anyone looking for a practical approach to learning GitHub Actions, regardless of their experience level. Whether you're a software developer, a DevOps engineer, anyone who has already experimented with Actions, or someone completely new to CI/CD tools like Jenkins or Azure Pipelines, you'll find expert insights in this book. Basic knowledge of using Git and command lines is a must.

Table of Contents
  1. GitHub Actions Workflows
  2. Authoring and Debugging Workflows
  3. Building GitHub Actions
  4. The Workflow Runtime
  5. Automate Tasks in GitHub with GitHub Actions
  6. Building and Validating Your Code
  7. Release Your Software with GitHub Actions

商品描述(中文翻譯)

由一位微軟區域總監撰寫的這本書向您展示如何利用社群驅動的 GitHub Actions 工作流平台來自動化重複的工程任務。主要特點包括:

- 使用 OpenID 自動化 CI/CD 工作流程,並安全地部署到 Azure、AWS 或 GCP 等雲服務提供商。
- 使用 Docker、JavaScript 編程或 shell 腳本創建自己的自定義操作,並與他人共享。
- 探索如何自動化 GitHub 文件中未記載的複雜場景。

書籍描述:
告別繁瑣的任務!GitHub Actions 是一個強大的工作流引擎,可以自動化 GitHub 生態系統中的一切,讓您專注於最重要的事情。

本書解釋了 GitHub Actions 工作流語法、不同類型的操作,以及 GitHub 托管和自托管工作流運行器的工作原理。您將獲得有關如何使用 Visual Studio Code (VS Code) 編寫和調試 GitHub Actions 和工作流的提示,以及如何在本地運行它們並利用 GitHub Copilot 的能力。本書通過實際案例引導您完成現實世界的使用情境,幫助您自動化整個發布流程。您將涵蓋從自動生成發布說明到構建和測試軟件,再到使用 OpenID Connect (OIDC)、密鑰、變量、環境和審批檢查安全地部署到 Azure、Amazon Web Services (AWS) 或 Google Cloud 的所有內容。

本書不僅僅涉及 CI/CD,還演示了使用 GitHub CLI、GitHub APIs 和 SDKs 以及 GitHub Token 執行 IssueOps 和自動化其他重複任務的方法。您將學習如何構建自己的操作和可重用的工作流,與社群或組織共享構建塊。

通過閱讀本書,您將獲得自動化任務並以卓越的效率和靈活性工作所需的技能。

您將學到的內容包括:

- 使用 VS Code 和 Copilot 編寫和調試 GitHub Actions 工作流。
- 在 GitHub 提供的虛擬機器(Linux、Windows 和 macOS)上運行工作流,或在自己的基礎設施中託管自己的運行器。
- 了解如何使用 GitHub Actions 保護工作流的安全性。
- 通過使用 GitHub 強大的工具(如 CLI、API、SDK 和訪問令牌)自動化工作流程,提高生產力。
- 以分階段或基於環狀的部署方式,以安全可靠的方式部署到任何雲和平台。

本書適合任何希望實際學習 GitHub Actions 的人,無論他們的經驗水平如何。無論您是軟件開發人員、DevOps 工程師、已經嘗試過 Actions 的任何人,還是對 Jenkins 或 Azure Pipelines 等 CI/CD 工具完全陌生的人,本書都提供了專家見解。必須具備使用 Git 和命令行的基本知識。

目錄包括:
1. GitHub Actions 工作流程
2. 編寫和調試工作流程
3. 構建 GitHub Actions
4. 工作流運行時
5. 使用 GitHub Actions 自動化 GitHub 任務
6. 構建和驗證代碼
7. 使用 GitHub Actions 發布軟件