kind: pipeline type: docker name: default steps: - name: test image: maven:3.8-openjdk-18-slim commands: - mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V - mvn test -B when: branch: include: - master - feature/* - name: deploy image: maven:3.8-openjdk-18-slim environment: REPO_TOKEN: from_secret: repo-token commands: - mvn -s maven-settings.xml deploy -DskipTests=true when: branch: - master event: exclude: - pull_request - name: build_docker_image image: plugins/docker settings: registry: gittr.ch/java/labyrinth username: manuel password: from_secret: docker-token repo: java/labyrinth tags: - latest dockerfile: docker/Dockerfile auto_tag: true auto_tag_suffix: "-ci" debug: true launch_debug: true when: branch: - feature/docker