Giter VIP home page Giter VIP logo

costly's Introduction

Micronaut 3.0.4-SNAPSHOT Documentation


Push To Docker Registry Workflow

Workflow file: .github/workflows/gradle.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. Login to docker registry based on provided configuration.
  3. Build, tag and push Docker image with Micronaut application to the Docker container image.

Dependencies on other GitHub Actions

  • Docker login(docker/login)
  • Setup GraalVM(DeLaGuardo/setup-graalvm)

Setup

Add the following GitHub secrets:

Name Description
DOCKER_USERNAME Username for Docker registry authentication.
DOCKER_PASSWORD Docker registry password.
DOCKER_REPOSITORY_PATH Path to the docker image repository inside the registry, e.g. for the image foo/bar/micronaut:0.1 it is foo/bar.
DOCKER_REGISTRY_URL Docker registry url.

Configuration examples

Specifics on how to configure public cloud docker registries like DockerHub, Google Container Registry (GCR), AWS Container Registry (ECR), Oracle Cloud Infrastructure Registry (OCIR) and many more can be found in docker/login-action documentation.

DockerHub

  • DOCKER_USERNAME - DockerHub username
  • DOCKER_PASSWORD - DockerHub password or personal access token
  • DOCKER_REPOSITORY_PATH - DockerHub organization or the username in case of personal registry
  • DOCKER_REGISTRY_URL - No need to configure for DockerHub

See docker/login-action for DockerHub

Google Container Registry (GCR)

Create service account with permission to edit GCR or use predefined Storage Admin role.

  • DOCKER_USERNAME - set exactly to _json_key
  • DOCKER_PASSWORD - content of the service account json key file
  • DOCKER_REPOSITORY_PATH - <project-id>/foo
  • DOCKER_REGISTRY_URL - gcr.io

See docker/login-action for GCR

AWS Elastic Container Registry (ECR)

Create IAM user with permission to push to ECR (or use AmazonEC2ContainerRegistryFullAccess role).

  • DOCKER_USERNAME - access key ID
  • DOCKER_PASSWORD - secret access key
  • DOCKER_REPOSITORY_PATH - no need to set
  • DOCKER_REGISTRY_URL - set to <aws-account-number>.dkr.ecr.<region>.amazonaws.com

See docker/login-action for ECR

Oracle Infrastructure Cloud Registry (OCIR)

Create auth token for authentication.

  • DOCKER_USERNAME - username in format <tenancy>/<username>
  • DOCKER_PASSWORD - account auth token
  • DOCKER_REPOSITORY_PATH - <tenancy>/<registry>/foo
  • DOCKER_REGISTRY_URL - set to <region>.ocir.io

See docker/login-action for OCIR

Feature kafka-streams documentation

Feature elasticsearch documentation

Feature management documentation

Feature views-handlebars documentation

Feature testcontainers documentation

Feature graphql documentation

Feature cache-caffeine documentation

Feature jdbc-hikari documentation

Feature hibernate-validator documentation

Feature kafka documentation

Feature github-workflow-docker-registry documentation

Feature liquibase documentation

Feature aws-v2-sdk documentation

Feature r2dbc documentation

Feature security-jwt documentation

Feature security documentation

Feature rxjava3 documentation

Feature http-client documentation

costly's People

Contributors

hc747 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.