- Docker login(
docker/login
) - Setup GraalVM(
DeLaGuardo/setup-graalvm
)
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. |
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.
Workflow file: .github/workflows/graalvm.yml
For pushes to the master
branch, the workflow will:
- Setup the build environment with respect to the selected java/graalvm version.
- Login to docker registry based on provided configuration.
- Build, tag and push Docker image with Micronaut application to the Docker container image.
- Docker login(
docker/login
) - Setup GraalVM(
DeLaGuardo/setup-graalvm
)