GitHub Actions Cookbook: A practical guide to automating repetitive tasks and streamlining your development process
暫譯: GitHub Actions 食譜:自動化重複任務與簡化開發流程的實用指南
Kaufmann, Michael
- 出版商: Packt Publishing
- 出版日期: 2024-04-30
- 售價: $1,470
- 貴賓價: 9.5 折 $1,397
- 語言: 英文
- 頁數: 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
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
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- GitHub Actions Workflows
- Authoring and Debugging Workflows
- Building GitHub Actions
- The Workflow Runtime
- Automate Tasks in GitHub with GitHub Actions
- Building and Validating Your Code
- Release Your Software with GitHub Actions
商品描述(中文翻譯)
本書由微軟區域總監撰寫,展示如何利用社群驅動的 GitHub Actions 工作流程平台來自動化重複的工程任務
主要特色
- 自動化 CI/CD 工作流程,並使用 OpenID 安全地部署到 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 API 和 SDK 以及 GitHub Token 執行 IssueOps 和自動化其他重複任務的配方。您將學會如何構建自己的動作和可重用的工作流程,與社群或您組織內部分享構建模塊。
在這本 GitHub 書籍結束時,您將獲得自動化任務和以卓越的效率和敏捷性工作的技能。
您將學到的內容
- 使用 VS Code 和 Copilot 編寫和除錯 GitHub Actions 工作流程
- 在 GitHub 提供的虛擬機 (Linux、Windows 和 macOS) 上運行您的工作流程,或在您的基礎設施中托管自己的執行器
- 了解如何使用 GitHub Actions 保護您的工作流程
- 通過使用 GitHub 的強大工具(如 CLI、API、SDK 和訪問令牌)自動化工作流程來提高您的生產力
- 以安全可靠的方式進行分階段或環形部署到任何雲端和平台
本書適合誰
本書適合任何尋求實用方法學習 GitHub Actions 的人,無論其經驗水平如何。無論您是軟體開發人員、DevOps 工程師、已經嘗試過 Actions 的人,或是對 CI/CD 工具(如 Jenkins 或 Azure Pipelines)完全陌生的人,您都能在本書中找到專家的見解。基本的 Git 和命令行使用知識是必須的。
目錄
- GitHub Actions 工作流程
- 編寫和除錯工作流程
- 構建 GitHub Actions
- 工作流程運行時
- 使用 GitHub Actions 自動化 GitHub 中的任務
- 構建和驗證您的代碼
- 使用 GitHub Actions 發佈您的軟體