Draft: [FEA] ✨ Users can be searched ignoring accents #2144
This file contains 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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Sugoi API CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v1 | |
with: | |
report_paths: "**/TEST-*.xml" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Spotless check | |
run: mvn spotless:check | |
- name: Upload war | |
uses: actions/upload-artifact@v2 | |
with: | |
name: war | |
path: sugoi-api-distribution/sugoi-api-distribution-war/target/*.war | |
docker: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.repository == 'inseefrlab/sugoi-api' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download war | |
id: download | |
uses: actions/download-artifact@v2 | |
with: | |
name: war | |
path: sugoi-api-distribution/sugoi-api-distribution-war/target/sugoi-api.war | |
- name: Docker meta | |
id: docker_meta | |
uses: crazy-max/[email protected] | |
with: | |
images: inseefrlab/sugoi-api # list of Docker images to use as base name for tags | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: | | |
${{ steps.docker_meta.outputs.tags }} | |
${{ github.ref == 'refs/heads/main' && 'inseefrlab/sugoi-api:latest' || '' }} | |
labels: ${{ steps.docker_meta.outputs.labels }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |