Skip to content

Commit

Permalink
use gradle plugin for release
Browse files Browse the repository at this point in the history
  • Loading branch information
bryopsida committed Oct 14, 2023
1 parent e3c613f commit 7039a8c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ jobs:
HELM_REPO_PASSWORD: "${{ secrets.GITHUB_TOKEN }}"
with:
gradle-version: 8.3
arguments: k8sResource k8sHelm
# we've already logged into the registry use helm to push, in the future use k8sHelmPush task
- name: Helm Publish
run: |
cd build/jkube/helm/$(./gradlew --console=plain -q printProjectName)/kubernetes/ && \
helm package . && \
helm push *.tgz oci://ghcr.io/${{ github.repository_owner }}/helm
arguments: k8sResource k8sHelm k8sHelmPush
# # we've already logged into the registry use helm to push, in the future use k8sHelmPush task
# - name: Helm Publish
# run: |
# cd build/jkube/helm/$(./gradlew --console=plain -q printProjectName)/kubernetes/ && \
# helm package . && \
# helm push *.tgz oci://ghcr.io/${{ github.repository_owner }}/helm
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.1.3'
id 'io.spring.dependency-management' version '1.1.3'
id 'org.eclipse.jkube.kubernetes' version '1.14.0'
id 'org.eclipse.jkube.kubernetes' version '1.15-SNAPSHOT'
id 'com.palantir.git-version' version '3.0.0'
id 'com.diffplug.spotless' version '6.21.0'
id 'jacoco'
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
pluginManagement {
repositories {
maven { url "https://plugins.gradle.org/m2" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}
rootProject.name = 'spring-boot-starter-k8s'

0 comments on commit 7039a8c

Please sign in to comment.