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.

0 commit comments

Comments
 (0)