Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michle99/micronaut_cicd
Intro to Micronaut and Github Actions CI/CD.
https://github.com/michle99/micronaut_cicd
cicd github-actions gradle java micronaut microservices
Last synced: about 1 month ago
JSON representation
Intro to Micronaut and Github Actions CI/CD.
- Host: GitHub
- URL: https://github.com/michle99/micronaut_cicd
- Owner: Michle99
- Created: 2023-10-22T19:07:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-27T05:07:20.000Z (about 1 year ago)
- Last Synced: 2023-11-28T05:32:34.871Z (about 1 year ago)
- Topics: cicd, github-actions, gradle, java, micronaut, microservices
- Language: Java
- Homepage:
- Size: 19.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction to Micronaut and Github Actions CICD
[![github-actions-cicd-demo](https://github.com/Michle99/micronaut_cicd/actions/workflows/cicd-workflow.yml/badge.svg)](https://github.com/Michle99/micronaut_cicd/actions/workflows/cicd-workflow.yml)## Description
Create a simple micronaut project and github actions workflow.## Getting Started
Create a Micronaut poject using the Micronaut Launch tool to generate your project:
[Micronaut Launch tool](https://micronaut.io/launch)## Create Github Actions
To create a github action:
- Create a new repository for the sample micronaut project.
- Go to the `actions` of the repository, click on the `set up a workflow yourself ->` link below the `Get started with Github Actions` header.
- A new tab opens with a `.github/workflows/main.yml`, you can rename the `.yml`.
- Enter the below script to create a github action:
```
name: github-actions-cicd-demo
on:
push:
branches:
- '*'
jobs:
build-job:
name: Build Job
runs-on: ubuntu-latest
steps:
- name: 'Start Build Job'
run: |
echo "Starting the build job."```
- Add and commit the sample project to the repository using git commands:```
$ git add . && git commit -m "Initial Commit" && git push -u origin main
```
## Result
The below screenshot is the result of creating the Github Actions:## Resources
- [User Guide](https://docs.micronaut.io/4.1.5/guide/index.html)
- [API Reference](https://docs.micronaut.io/4.1.5/api/index.html)
- [Configuration Reference](https://docs.micronaut.io/4.1.5/guide/configurationreference.html)
- [Micronaut Guides](https://guides.micronaut.io/index.html)
---- [Shadow Gradle Plugin](https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow)
- [Micronaut Gradle Plugin documentation](https://micronaut-projects.github.io/micronaut-gradle-plugin/latest/)
- [GraalVM Gradle Plugin documentation](https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html)
#### Feature serialization-jackson documentation- [Micronaut Serialization Jackson Core documentation](https://micronaut-projects.github.io/micronaut-serialization/latest/guide/)
#### Feature micronaut-aot documentation
- [Micronaut AOT documentation](https://micronaut-projects.github.io/micronaut-aot/latest/guide/)