Skip to content

Commit fd65e05

Browse files
committed
modifying jreleaser - adding workflows
1 parent 9acd507 commit fd65e05

File tree

15 files changed

+84
-92
lines changed

15 files changed

+84
-92
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: 'Build'
9+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/build.yml@main

.github/workflows/early-access.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Early Access'
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
earlyaccess:
9+
name: 'Early Access'
10+
if: github.repository == 'redis-field-engineering/redis-cache-java' && startsWith(github.event.head_commit.message, 'Releasing version') != true
11+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/early-access.yml@main
12+
with:
13+
jreleaser-arguments: full-release
14+
secrets:
15+
codecov-token: ${{ secrets.CODECOV_TOKEN }}
16+
github-user: ${{ secrets.GIT_USER }}
17+
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
18+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
19+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
20+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
21+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
22+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
23+
docker-username: ${{ secrets.DOCKER_USERNAME }}
24+
docker-password: ${{ secrets.DOCKER_PASSWORD }}
25+
docker-github-username: ${{ secrets.GIT_USER }}
26+
docker-github-password: ${{ secrets.GIT_ACCESS_TOKEN }}
27+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version'
8+
required: true
9+
branch:
10+
description: 'Branch'
11+
default: 'main'
12+
required: true
13+
tasks:
14+
description: 'Tasks'
15+
default: 'build aggregateTestReports publish'
16+
required: false
17+
18+
jobs:
19+
release:
20+
name: Release
21+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/release.yml@main
22+
with:
23+
branch: ${{ github.event.inputs.branch }}
24+
version: ${{ github.event.inputs.version }}
25+
tasks: ${{ github.event.inputs.tasks }}
26+
secrets:
27+
github-user: ${{ secrets.GIT_USER }}
28+
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
29+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
30+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
31+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
32+
docker-username: ${{ secrets.DOCKER_USERNAME }}
33+
docker-password: ${{ secrets.DOCKER_PASSWORD }}
34+
docker-github-username: ${{ secrets.GIT_USER }}
35+
docker-github-password: ${{ secrets.GIT_ACCESS_TOKEN }}
36+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
37+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
38+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
22 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
22 Bytes
Binary file not shown.
68 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Wed Feb 19 11:07:08 EST 2025
2-
gradle.version=7.6.1
1+
#Thu Feb 20 13:02:03 EST 2025
2+
gradle.version=8.12.1
-18 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

jreleaser.yml

Lines changed: 8 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project:
33
description: Prometheus driven scaler for Redis Cloud
44
longDescription: |
55
Application that allows for rule-driven scaling of a Redis Cloud Database
6-
based off of Prometheus Alert Manager webhooks and Crons
6+
based off of Prometheus Alert Manager webhooks and crons
77
links:
88
homepage: https://github.com/redis-field-engineering/redis-cloud-autoscaler
99
documentation: https://github.com/redis-field-engineering/redis-cloud-autoscaler
@@ -88,74 +88,18 @@ signing:
8888
active: ALWAYS
8989
armored: true
9090

91-
deploy:
92-
maven:
93-
nexus2:
94-
maven-central:
95-
active: ALWAYS
96-
url: https://s01.oss.sonatype.org/service/local
97-
snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots
98-
closeRepository: true
99-
releaseRepository: true
100-
stagingRepositories:
101-
- build/repos/local/release
102-
10391
announce:
10492
slack:
10593
active: RELEASE
10694
channel: '#field-engineering-announcements'
10795
message: '🧨 Redis Cloud Autoscaler {{projectVersion}} has been released! {{releaseNotesUrl}}'
10896

109-
assemble:
110-
jlink:
111-
redis-cloud-autoscaler-standalone:
112-
active: ALWAYS
113-
java:
114-
version: 21
115-
imageName: '{{distributionName}}-{{projectEffectiveVersion}}'
116-
executable: redis-cloud-autoscaler
117-
fileSets:
118-
- input: '.'
119-
includes:
120-
- LICENSE
121-
jdeps:
122-
multiRelease: base
123-
ignoreMissingDeps: true
124-
targets:
125-
- 'autoscaler/redis-cloud-autoscaler/build/libs/redis-cloud-autoscaler-{{projectVersion}}.jar'
126-
additionalModuleNames:
127-
- 'java.security.sasl'
128-
- 'java.security.jgss'
129-
- 'jdk.crypto.cryptoki'
130-
- 'jdk.crypto.ec'
131-
- 'jdk.localedata'
132-
- 'jdk.net'
133-
- 'jdk.security.auth'
134-
- 'jdk.security.jgss'
135-
targetJdks:
136-
- path: '{{jdkPathPrefix}}/zulu21Osx/{{jdkFilePrefix}}-macosx_x64/zulu-21.jdk/Contents/Home'
137-
platform: 'osx-x86_64'
138-
- path: '{{jdkPathPrefix}}/zulu21OsxArm/{{jdkFilePrefix}}-macosx_aarch64/zulu-21.jdk/Contents/Home'
139-
platform: 'osx-aarch_64'
140-
- path: '{{jdkPathPrefix}}/zulu21Linux/{{jdkFilePrefix}}-linux_x64'
141-
platform: 'linux-x86_64'
142-
- path: '{{jdkPathPrefix}}/zulu21LinuxArm/{{jdkFilePrefix}}-linux_aarch64'
143-
platform: 'linux-aarch_64'
144-
- path: '{{jdkPathPrefix}}/zulu21LinuxMusl/{{jdkFilePrefix}}-linux_musl_x64'
145-
platform: 'linux_musl-x86_64'
146-
- path: '{{jdkPathPrefix}}/zulu21LinuxMuslArm/{{jdkFilePrefix}}-linux_musl_aarch64'
147-
platform: 'linux_musl-aarch_64'
148-
- path: '{{jdkPathPrefix}}/zulu21Windows/{{jdkFilePrefix}}-win_x64'
149-
platform: 'windows-x86_64'
150-
- path: '{{jdkPathPrefix}}/zulu21WindowsArm/{{jdkFilePrefix}}-win_aarch64'
151-
platform: 'windows-aarch_64'
152-
mainJar:
153-
path: 'autoscaler/redis-cloud-autoscaler/build/libs/redis-cloud-autoscaler-{{projectVersion}}.jar'
154-
jars:
155-
- pattern: 'autoscaler/redis-cloud-autoscaler/build/dependencies/flat/*.jar'
156-
15797
distributions:
15898
redis-cloud-autoscaler:
99+
type: SINGLE_JAR
100+
artifacts:
101+
- path: 'autoscaler/{{distributionName}}/build/libs/{{distributionName}}-{{projectVersion}}.jar'
102+
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.jar'
159103
docker:
160104
active: ALWAYS
161105
continueOnError: true
@@ -168,39 +112,13 @@ distributions:
168112
labels:
169113
'org.opencontainers.image.title': 'redis-cloud-autoscaler'
170114
imageNames:
171-
- 'redis-cloud-autoscaler/{{distributionName}}:{{tagName}}'
172-
- 'redis-cloud-autoscaler/{{distributionName}}:latest'
115+
- '{{repoOwner}}/{{distributionName}}:{{tagName}}'
116+
- '{{repoOwner}}/{{distributionName}}:latest'
173117
buildx:
174118
enabled: true
175119
platforms:
176120
- 'linux/amd64'
177-
- 'linux/arm64'
178-
scoop:
179-
active: ALWAYS
180-
continueOnError: true
181-
repository:
182-
active: RELEASE
183-
name: 'scoop'
184-
commitMessage: 'redis-cloud-autoscaler {{tagName}}'
185-
artifacts:
186-
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip
187-
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
188-
extraProperties:
189-
skipSpec: true
190-
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.tar
191-
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.tar'
192-
extraProperties:
193-
skipFlatpak: true
194-
195-
redis-cloud-autoscaler-standalone:
196-
brew:
197-
active: ALWAYS
198-
continueOnError: true
199-
formulaName: redis-cloud-autoscaler
200-
multiPlatform: true
201-
repository:
202-
active: RELEASE
203-
commitMessage: 'redis-cloud-autoscaler {{tagName}}'
121+
- 'linux/arm64'\
204122

205123
files:
206124
artifacts:

0 commit comments

Comments
 (0)