Repository navigation
ci: build, test and publish the image to GHCR - #3
Merged
Merged
Conversation
Run the Gradle build and all tests on every pull request. On main and v* tags push ogc-api-processes to GHCR tagged <version>-<sha8> (plus <version> and latest on tags). Make gradlew executable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow (
.github/workflows/build.yml) that builds, tests and publishes the OGC API Processes facade../gradlew buildon Temurin 17 (OpenAPI generation, compile, all tests, boot jar). The jar and test reports are kept as run artifacts for 14 days.main: also builds and pushesghcr.io/cgi-italy-insula-processing/com.cgi.eoss.ogc/ogc-api-processes, tagged<version>-<sha8>, where<version>is the Gradle version without-SNAPSHOT.v<version>: also adds the<version>andlatesttags. The job fails if the tag does not match the Gradle version.The image uses the existing Dockerfile, with the base image taken from
container.docker.baseImageingradle.properties. The Gradle wrapper is validated before use. All actions are pinned to full commit SHAs.packages: writeis granted only to the image job, which never runs on pull requests.Also makes
gradlewexecutable, so./gradlewworks on Linux runners.Test plan
./gradlew buildin a cleaneclipse-temurin:17-jdkcontainer: 279 tests, 0 failures1.0.3-<sha8>appears on GHCR