Skip to content

Commit

Permalink
Migrate CI/CD to GHA
Browse files Browse the repository at this point in the history
* Upgrade to Gradle `8.4` and latest plugins for Develocity (formerly Gradle Enterprise)
* Add GHA workflows based on a common repository with reusable workflows
* Remove `release-files-spec.json` as it is supplied by common repo on respective CI/CD phase
* Remove obsolete GHA workflows
* Fix deprecation in the `AbstractTestContainerTests`
* Change developer roles and emails
  • Loading branch information
artembilan committed Dec 7, 2023
1 parent 7a92b41 commit af93931
Show file tree
Hide file tree
Showing 17 changed files with 178 additions and 266 deletions.
31 changes: 0 additions & 31 deletions .github/release-files-spec.json

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/backport-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Backport Issue

on:
push:
branches:
- '*.x'

jobs:
backport-issue:
uses: artembilan/spring-github-workflows/.github/workflows/spring-backport-issue.yml@main
secrets:
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
23 changes: 0 additions & 23 deletions .github/workflows/central-sync-close.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/central-sync-create.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/central-sync-release.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI SNAPSHOT

on:
workflow_dispatch:
push:
branches:
- main
- '*.x'

jobs:
build-snapshot:
uses: artembilan/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
secrets:
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
38 changes: 0 additions & 38 deletions .github/workflows/pr-build-workflow.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Pull Request Build

on:
pull_request:
branches:
- main

jobs:
build-pull-request:
uses: artembilan/spring-github-workflows/.github/workflows/spring-gradle-pull-request-build.yml@main
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
workflow_dispatch:

run-name: Release current version for branch ${{ github.ref_name }}

jobs:
release:
permissions:
actions: write

uses: artembilan/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
secrets:
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
OSSRH_URL: ${{ secrets.OSSRH_URL }}
OSSRH_S01_TOKEN_USERNAME: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
OSSRH_S01_TOKEN_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
OSSRH_STAGING_PROFILE_NAME: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
SPRING_RELEASE_SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
46 changes: 46 additions & 0 deletions .github/workflows/verify-staged-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Verify Staged Artifacts

on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release version like 5.0.0-M1, 5.1.0-RC1, 5.2.0 etc.'
required: true
type: string

jobs:
verify-staged-with-samples:
runs-on: ubuntu-latest
steps:

- name: Checkout Samples Repo
uses: actions/checkout@v4
with:
repository: spring-projects/spring-amqp-samples
ref: ${{ github.ref_name }}
show-progress: false

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: 'maven'

- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}

- name: Configure JFrog Cli
run: jf mvnc --repo-resolve-releases=libs-release-staging --repo-resolve-snapshots=snapshot

- name: Verify samples against staged release
run: jf mvn verify -D"spring.amqp.version"=${{ inputs.releaseVersion }} -B -ntp

- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '**/target/surefire-reports/**/*.*'
retention-days: 1
Loading

0 comments on commit af93931

Please sign in to comment.