build(deps): bump org.jruby:jruby-complete from 10.0.5.0 to 10.1.0.0 #224
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.get_version.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Extract version from tag | |
| id: get_version | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build and Verify with Maven | |
| run: | | |
| if [ -n "${{ steps.get_version.outputs.version }}" ]; then | |
| mvn clean verify -Drevision=${{ steps.get_version.outputs.version }} | |
| else | |
| mvn clean verify | |
| fi | |
| - name: Upload archiledger-server Artifact | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: archiledger-server-${{ steps.get_version.outputs.version }} | |
| path: mcp/target/*.jar | |
| retention-days: 1 | |
| - name: Upload agentic-memory-mcp Artifact | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: archiledger-agentic-memory-mcp-${{ steps.get_version.outputs.version }} | |
| path: agentic-memory-mcp/target/*.jar | |
| retention-days: 1 | |
| docker-publish: | |
| name: Publish Docker Image (archiledger) | |
| needs: build-and-test | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: archiledger-server-${{ needs.build-and-test.outputs.version }} | |
| path: mcp/target | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: | | |
| thecookiezen/archiledger:latest | |
| thecookiezen/archiledger:${{ needs.build-and-test.outputs.version }} | |
| docker-publish-agentic-memory: | |
| name: Publish Docker Image (agentic-memory-mcp) | |
| needs: build-and-test | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: archiledger-agentic-memory-mcp-${{ needs.build-and-test.outputs.version }} | |
| path: agentic-memory-mcp/target | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: agentic-memory-mcp/Dockerfile | |
| push: true | |
| tags: | | |
| thecookiezen/archiledger-agentic-memory:latest | |
| thecookiezen/archiledger-agentic-memory:${{ needs.build-and-test.outputs.version }} |