deps (gh-action) bump version v2->v3 #318
Workflow file for this run
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
name: ci-pull-request | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }} | |
- name: mvn | |
run: >- | |
mvn clean package | |
--batch-mode | |
--file ./pom.xml | |
--settings ./settings.xml | |
--define app.packages.username="${APP_PACKAGES_USERNAME}" | |
--define app.packages.password="${APP_PACKAGES_PASSWORD}"; | |
mvn clean package -P docker | |
--batch-mode | |
--file ./pom.xml | |
--settings ./settings.xml | |
--define app.packages.username="${APP_PACKAGES_USERNAME}" | |
--define app.packages.password="${APP_PACKAGES_PASSWORD}" | |
-DskipTests; | |
env: | |
APP_PACKAGES_USERNAME: ${{ github.actor }} | |
APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
- name: docker | |
run: >- | |
docker build . | |
--file ./Dockerfile; |