Automating Workflows with GitHub Actions: Automate software development workflows and seamlessly deploy your applications using GitHub Actions
- Length: 216 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2021-11-11
- ISBN-10: 1800560400
- ISBN-13: 9781800560406
- Sales Rank: #434015 (See Top 100 Books)
Build, test, and deploy code right from your GitHub repository by automating, customizing, and executing software development workflows with GitHub Actions
Key Features
- Enhance your CI/CD and DevOps workflows using GitHub Actions
- Discover how to create custom GitHub Actions using Docker and JavaScript
- Get up and running with building a CI/CD pipeline effectively
Book Description
GitHub Actions is one of the most popular products that enables you to automate development tasks and improve your software development workflow. Automating Workflows with GitHub Actions uses real-world examples to help you automate everyday tasks and use your resources efficiently.
This book takes a practical approach to helping you develop the skills needed to create complex YAML files to automate your daily tasks. You’ll learn how to find and use existing workflows, allowing you to get started with GitHub Actions right away. Moving on, you’ll discover complex concepts and practices such as self-hosted runners and writing workflow files that leverage other platforms such as Docker as well as programming languages such as Java and JavaScript. As you advance, you’ll be able to write your own JavaScript, Docker, and composite run steps actions, and publish them in GitHub Marketplace! You’ll also find instructions to migrate your existing CI/CD workflows into GitHub Actions from platforms like Travis CI and GitLab. Finally, you’ll explore tools that’ll help you stay informed of additions to GitHub Actions along with finding technical support and staying engaged with the community.
By the end of this GitHub book, you’ll have developed the skills and experience needed to build and maintain your own CI/CD pipeline using GitHub Actions.
What you will learn
- Get to grips with the basics of GitHub and the YAML syntax
- Understand key concepts of GitHub Actions
- Find out how to write actions for JavaScript and Docker environments
- Discover how to create a self-hosted runner
- Migrate from other continuous integration and continuous delivery (CI/CD) platforms to GitHub Actions
- Collaborate with the GitHub Actions community and find technical help to navigate technical difficulties
- Publish your workflows in GitHub Marketplace
Who this book is for
This book is for anyone involved in the software development life cycle, for those looking to learn about GitHub Actions and what can be accomplished, and for those who want to develop a new skill to help them advance their software development career. If you are new to GitHub and GitHub Actions in general, then this book is for you. Basic knowledge of GitHub as a platform will help you to get the most out of this book.
Table of Contents
- Learning the foundations for GitHub Actions
- Deep-diving into GitHub Actions
- A closer look at Workflows
- Working with Self-hosted runners
- Writing your own actions
- Marketplace: Finding Existing Actions and Publishing Your Own
- Migrations
- Contributing to the community and finding help
- The future of GitHub Actions
Automating Workflows with GitHub Actions Contributors About the author About the reviewer Preface Who this book is for What this book covers To get the most out of this book Download the color images Conventions used Get in touch Share Your Thoughts Section 1:Introduction and Overview of Technologies Used with GitHub Actions Chapter 1: Learning the Foundations for GitHub Actions Technical requirements Understanding the basics of CI/CD A brief trip through the history of software development Introduction to GitHub: creating a user account Creating a free user account on GitHub Creating a PAT About SSH keys Checking for existing SSH keys Adding your SSH key to your GitHub user account Discovering the basics of Git and GitHub Configuring Git Basic Git commands Basics of GitHub Pull requests Settings Branches Actions Secrets Introduction to YAML Basic rules YAML components Summary Chapter 2: Deep Diving into GitHub Actions Learning about GitHub Actions' core concepts and components Events Jobs Steps Actions Runners Understanding the basics of workflows Learning the basics of the workflow file syntax Writing and customizing workflow files Using the Actions tab to find and customize workflow templates Securing your GitHub Actions Secrets – how to create and use them Creating encrypted secrets at the repository level Creating encrypted secrets at the environment level Using encrypted secrets in a workflow Best practices for securing self-hosted runners Summary Section 2: Advanced Concepts and Hands-On Exercises to Create Actions Chapter 3: A Closer Look at Workflows Reviewing the webhook events that trigger workflows Branch or tag creation Deployment creation and deployment status Issues Issue_comment Project Pull request Pull request review Authenticating within a workflow Overview Permissions Alternative authentication methods Understanding contexts, environment variables, and expressions Contexts Expressions Managing the workflow run Visualizing a workflow run Workflow run logs Summary Chapter 4: Working with Self-Hosted Runners Technical requirements Creating a self-hosted runner Overview Architecture and operating systems supported by self-hosted runners Communication with GitHub Adding the GitHub Actions runner application to your repository Configuring a job that runs on a self-hosted runner Managing a self-hosted runner Understanding the status of self-hosted runners Reviewing logs The automatic update process Removing a self-hosted runner Summary Chapter 5: Writing Your Own Actions Technical requirements Overview Types of actions Reviewing the metadata syntax Using exit codes Adding exit codes to a JavaScript action Adding exit codes to a Docker container action Creating a JavaScript action Prerequisites Defining the action Writing the action logic Ensuring all works as expected Creating a Docker container action Prerequisites Creating a Dockerfile in your GitHub repository Defining the action Writing the action logic Ensuring all works as expected Creating a composite run steps action Prerequisites Defining the action Ensuring all works as expected Summary Chapter 6: Marketplace – Finding Existing Actions and Publishing Your Own Technical requirements Overview Finding existing actions Publishing your own actions Prerequisites Preparing and publishing your action Removing your action from GitHub Marketplace Summary Section 3: Customizing Existing Actions, Migrations, and the Future of GitHub Actions Chapter 7: Migrations Technical requirements Considerations before you migrate Migrating from Azure Pipelines Syntax differences Migrating from GitLab CI/CD Syntax differences Migrating from Jenkins Syntax differences Summary Chapter 8: Contributing to the Community and Finding Help Technical requirements Hands-on learning Interacting with the GitHub Actions community Helping to improve GitHub Actions Requesting technical support Summary Chapter 9: The Future of GitHub Actions Technical requirements Checking the GitHub roadmap Reading the GitHub blog and changelog Connecting through social media Summary Why subscribe? Other Books You May Enjoy Packt is searching for authors like you Share Your Thoughts
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: Automating Workflows with GitHub Actions: Automate software development workflows and seamlessly deploy your applications using GitHub Actions
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.