Skip to content

Commit

Permalink
Attempt to use services:rabbitmq for ci-snapshot.yml
Browse files Browse the repository at this point in the history
Since we cannot propagate `services` down to the reusable workflow,
we don't have choice, but build respective job ourselves
  • Loading branch information
artembilan committed Oct 2, 2024
1 parent cbc2eb3 commit 4786825
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,37 @@ concurrency:

jobs:
build-snapshot:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
with:
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
secrets:
runs-on: ubuntu-latest
name: CI Build SNAPSHOT for ${{ github.ref_name }}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

services:
rabbitmq:
image: rabbitmq:3.13.7-management
options: --name rabbitmq
ports:
- 5672:5672
- 15672:15672
- 5552:5552

steps:
- run: docker exec rabbitmq rabbitmq-plugins enable rabbitmq_stream
- uses: actions/checkout@v4
with:
show-progress: false

- name: Checkout Common Repo
uses: actions/checkout@v4
with:
repository: spring-io/spring-github-workflows
path: spring-github-workflows
show-progress: false

- name: Build and Publish
timeout-minutes: 30
uses: ./spring-github-workflows/.github/actions/spring-artifactory-gradle-build
with:
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}

0 comments on commit 4786825

Please sign in to comment.