Skip to content

Merge pull request #2201 from dadoonet/dependabot/maven/org.jetbrains… #795

Merge pull request #2201 from dadoonet/dependabot/maven/org.jetbrains…

Merge pull request #2201 from dadoonet/dependabot/maven/org.jetbrains… #795

Workflow file for this run

name: Build and Deploy the master branch
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21 and Maven Central Repository
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Cache Docker images
uses: AndreKurait/[email protected]
with:
key: fscrawler-docker-cache-${{ runner.os }}-${{ hashFiles('pom.xml') }}
continue-on-error: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Create Maven settings.xml
uses: s4u/[email protected]
with:
githubServer: false
servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_TOKEN }}"},{"id": "docker.io", "username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}]'
- name: Deploy with Maven
run: mvn --batch-mode deploy -DskipTests