Skip to content

Commit 3dbedac

Browse files
author
Julien Ruaux
committed
ci: Moved to Redis Github Workflows
1 parent 21478e3 commit 3dbedac

File tree

3 files changed

+39
-83
lines changed

3 files changed

+39
-83
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,5 @@ on:
55

66
jobs:
77
build:
8-
name: Build
9-
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
15-
- name: Build
16-
uses: redis-field-engineering/redis-build-action@v1
17-
with:
18-
release: false
8+
name: 'Build'
9+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/build.yml@main

.github/workflows/early-access.yml

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,24 @@
1-
name: EarlyAccess
1+
name: 'Early Access'
22

33
on:
44
push:
55
branches: [ master ]
66

77
jobs:
88
earlyaccess:
9-
name: EarlyAccess
10-
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
18-
- name: Release
19-
uses: redis-field-engineering/redis-release-action@v2
20-
with:
21-
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
22-
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
23-
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
24-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
25-
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
26-
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
27-
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
28-
29-
- name: Upload test reports
30-
if: failure()
31-
uses: actions/upload-artifact@v2
32-
with:
33-
name: test-reports
34-
path: |
35-
build/reports/aggregate-tests/
9+
name: 'Early Access'
10+
if: github.repository == 'redis-developer/redis-enterprise-admin' && 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+
java-version: 19
15+
secrets:
16+
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
17+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
18+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
19+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
20+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
21+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
22+
docker-username: ${{ secrets.DOCKER_USERNAME }}
23+
docker-password: ${{ secrets.DOCKER_PASSWORD }}
24+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release.yml

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,27 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: "Release version"
7+
description: 'Release version'
88
required: true
9+
branch:
10+
description: 'Branch'
11+
default: 'master'
12+
required: true
13+
914
jobs:
1015
release:
1116
name: Release
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Version
20-
run: |
21-
echo ${{ github.event.inputs.version }} > VERSION
22-
23-
- name: Release
24-
uses: redis-field-engineering/redis-release-action@v2
25-
with:
26-
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
27-
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
28-
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
29-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
30-
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
31-
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
32-
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
33-
34-
- name: JReleaser output
35-
if: always()
36-
uses: actions/upload-artifact@v2
37-
with:
38-
name: artifact
39-
path: |
40-
out/jreleaser/trace.log
41-
out/jreleaser/output.properties
42-
43-
- name: Upload test reports
44-
if: failure()
45-
uses: actions/upload-artifact@v2
46-
with:
47-
name: test-reports
48-
path: |
49-
build/reports/aggregate-tests/
50-
51-
- name: Set Version
52-
uses: redis-field-engineering/redis-version-action@v2
53-
with:
54-
version: ${{ github.event.inputs.version }}
17+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/release.yml@main
18+
with:
19+
branch: ${{ github.event.inputs.branch }}
20+
version: ${{ github.event.inputs.version }}
21+
secrets:
22+
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
23+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
24+
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
25+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
26+
docker-username: ${{ secrets.DOCKER_USERNAME }}
27+
docker-password: ${{ secrets.DOCKER_PASSWORD }}
28+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
29+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
30+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)