Attach command #1
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: build | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
packages: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Maven Action | |
uses: s4u/[email protected] | |
with: | |
java-distribution: temurin | |
java-version: 21 | |
maven-version: 3.9.9 | |
cache-enabled: true | |
# Run docker run -d -p 5000:5000 ghcr.io/oras-project/registry:latest before | |
- name: Start OCI registry | |
run: docker run -d -p 5000:5000 ghcr.io/oras-project/registry:latest | |
- name: Maven build | |
run: mvn --batch-mode --update-snapshots verify | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |