Skip to content

sh1bz/lykia-app-maven

Repository files navigation

Micronaut 3.9.1 Documentation


Google Cloud Run GraalVM GitHub Workflow

Workflow file: .github/workflows/google-cloud-run-graalvm.yml

Workflow description

For pushes to the master branch, the workflow will:

  1. Setup the build environment with respect to the selected java/graalvm version.
  2. Setup of Google Cloud CLI.
  3. Authenticate docker to use Google Container Registry (GCR).
  4. Build, tag and push Docker image with Micronaut application to GCR.
  5. Deploy Google Cloud Run application.

Dependencies on other GitHub Actions

Setup

Add the following GitHub secrets:

Name Description
GCLOUD_PROJECT_ID Project id.
GCLOUD_SA_KEY Service account key file. See more on Creating and managing service accounts and Deployment permissions for CloudRun
GCLOUD_IMAGE_REPOSITORY (Optional) Docker image repository in GCR. For image [GCLOUD_REGION]/[GCLOUD_PROJECT_ID]/foo/bar:0.1, the foo is an image repository.

The workflow file also contains additional configuration options that are now configured to:

Name Description Default value
GCLOUD_REGION Region where the Cloud Run application will be created. See Cloud Run Release Notes to find out what regions are supported. europe-west3
GCLOUD_GCR Google Container Registry url. See Overview of Container Registry to find out valid GCR endpoints. eu.gcr.io

Verification

From the workflow step Deploy Cloud Run copy out url https://lykia-app-maven-__________run.app of the invoke endpoint:

Invoke endpoint:
https://lykia-app-maven-__________run.app

Call the api endpoint:

curl https://lykia-app-maven-__________run.app/lykiaAppMaven

Feature github-workflow-google-cloud-run-graalvm documentation

Feature http-client documentation

About

Micronaut Lykia -app -maven Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages