Skip to content

Commit

Permalink
feat: Add container image build and publish for Quarkus
Browse files Browse the repository at this point in the history
  • Loading branch information
grossws committed Apr 27, 2023
1 parent 1599746 commit 4247c55
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build-gradle.yml
Expand Up @@ -18,6 +18,11 @@ on:
description: Enable Gradle configuration cache
required: false
default: false
with-quarkus-docker-image:
type: boolean
description: Build container image in quarkus project
required: false
default: false
secrets:
nexus_url:
description: Nexus base URL
Expand All @@ -43,6 +48,7 @@ permissions:

env:
ZULIP_URL: ${{ secrets.zulip_url }}
QUARKUS_CONTAINER_IMAGE_BUILD: ${{ inputs.with-quarkus-docker-image }}

jobs:
wrapper:
Expand Down
27 changes: 26 additions & 1 deletion .github/workflows/release-gradle.yml
Expand Up @@ -13,6 +13,16 @@ on:
description: JDK distribution for gradle build
required: false
default: temurin
with-quarkus-docker-image:
type: boolean
description: Build container image in quarkus project
required: false
default: false
docker-image-extra-tags:
type: string
description: Comma separated list of additional tags for docker image
required: false
default: ""
secrets:
nexus_url:
description: Nexus base URL
Expand All @@ -23,6 +33,15 @@ on:
nexus_password:
description: Nexus password
required: true
docker_registry:
description: Docker registry (host and port)
required: false
docker_username:
description: Docker registry username
required: false
docker_password:
description: Docker registry password
required: false
zulip_api_key:
description: Zulip bot api key
required: false
Expand All @@ -38,6 +57,12 @@ permissions:

env:
ZULIP_URL: ${{ secrets.zulip_url }}
QUARKUS_CONTAINER_IMAGE_BUILD: ${{ inputs.with-quarkus-docker-image }}
QUARKUS_CONTAINER_IMAGE_PUSH: ${{ inputs.with-quarkus-docker-image }}
QUARKUS_CONTAINER_IMAGE_REGISTRY: ${{ secrets.docker_registry }}
QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.docker_username }}
QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.docker_password }}
QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS: ${{ inputs.docker-image-extra-tags }}

jobs:
release:
Expand Down Expand Up @@ -90,7 +115,7 @@ jobs:
- name: Publish
id: gradle-publish
run: |
./gradlew publish \
./gradlew publish build \
-Prelease.useLastTag=true \
-PnexusUrl=${{ secrets.nexus_url }} \
-PnexusUsername=${{ secrets.nexus_username }} \
Expand Down

0 comments on commit 4247c55

Please sign in to comment.