Skip to content

Commit

Permalink
build(core): Docker image build on release (#14)
Browse files Browse the repository at this point in the history
- Docker image build on release
  • Loading branch information
nandorholozsnyak committed Apr 27, 2023
1 parent 26a9a77 commit 5d45a7c
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 247 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
cache: maven
- name: Build & Verify Project
run: ./mvnw verify
# - name: Native build
# run: ./mvnw package -Pnative
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
cache: maven
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
- name: Stage Files for Release
run: |
./mvnw versions:set -DnewVersion=$RELEASE_VERSION
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
cache: maven
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
- name: Stage Files for Snapshot Release
run: |
./mvnw versions:set -DnewVersion=999-SNAPSHOT
Expand Down
7 changes: 6 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ Coming soon.

=== Docker image

Coming soon.
The tool is available within a Docker image, check the https://github.com/rodnansol/jbang-catalog-document-generator/pkgs/container/jbang-catalog-document-generator[packages] of the organization.

[source,bash]
----
docker run -v $(pwd):/resources ghcr.io/rodnansol/jbang-catalog-document-generator:<version> generate /resources/jbang-catalog.json -o /resources/jbang-catalog.adoc
----

== Output

Expand Down
15 changes: 15 additions & 0 deletions jbang-catalog-document-generator-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,21 @@
<quarkus.package.type>uber-jar</quarkus.package.type>
</properties>
</profile>
<profile>
<id>release</id>
<properties>
<quarkus.container-image.build>true</quarkus.container-image.build>
<quarkus.container-image.push>true</quarkus.container-image.push>
</properties>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-container-image-jib</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>

<build>
<resources>
<resource>
Expand All @@ -68,4 +82,5 @@
</plugins>
</build>


</project>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
quarkus.package.add-runner-suffix=false
quarkus.package.add-runner-suffix=false
quarkus.jib.base-jvm-image=eclipse-temurin:17-alpine
quarkus.container-image.group=rodnansol
quarkus.container-image.name=jbang-catalog-document-generator
quarkus.container-image.registry=ghcr.io

0 comments on commit 5d45a7c

Please sign in to comment.