Published in


CI/CD Cloud Workflows with GitHub Actions and Ballerina

GitHub has introduced the ability to execute custom workflows for events you generate within GitHub using GitHub Actions. For instance, using this functionality, you can implement CI/CD using GitHub’s infrastructure itself. No need to subscribe for a special service to build/test and deploy your application, but rather these can be done in GitHub itself, with the actions defined by us, or the extensive list of actions already available.

Ballerina has also implemented its own GitHub Action by allowing the Ballerina CLI commands to be accessible as an action. The Ballerina GitHub Action lives in this repo. You will be able to find examples there on its usage. GitHub Actions are at the moment in beta status, and you have to request for an invite in order to use it. If you already have access, great, please give it a try. For others who are interested in seeing it in action, I have created a walkthrough video with some patterns on how this functionality can be used. The scenarios consist of Ballerina applications, that will build/test/deploy automatically with each git commit/push. The deployment scenarios that we will be looking at are:

  • Ballerina Kubernetes Deployment
  • AWS Lambda Deployment
  • Ballerina Module Deployment to Ballerina Central
Ballerina GitHub Actions Demo

The samples used for the above demo can be found in the below locations:

The Ballerina Tech Blog

Recommended from Medium

6 Benefits You’ll Notice When You Start Learning to Code

Laravel Eloquent Relationships | Laravel One to Many Polymorphic Relationship Tutorial

[Java][LeetCode][Intervals] Meger Intervals #56

“If it turns out that this is incurable, would you marry me?”

Building Continuous Code Quality through SonarCloud

3 Chaotic Python Features To Avoid

Advanced Rubik’s cube

Building a great SDK

Laptop with other components of internet like email, calculator, contacts

Basic OOP for shavetail Louies — PART III [Inheritance | Composition | Encapsulation]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anjana Fernando

Anjana Fernando

Author of ‘Beginning Ballerina Programming’ | Software Developer | Evangelist | 🇱🇰 🇺🇸 | Working at WSO2 Inc. — @lafernando

More from Medium

Managing Data in Containers

Google Cloud Functions with authorization headers

Book Report: Design and Build Great Web APIs

How to create your own Google Translate API ?