Fixes #255 - Add ability to disable anonymous access (#256) #202
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: | |
push: | |
branches: | |
- 'current' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Build with Maven | |
run: | | |
mvn -B --ntp install | |
mvn -B --ntp -P docker install | |
- name: Login to GHCR | |
if: github.ref == 'refs/heads/current' | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_IO_USERNAME }} | |
password: ${{ secrets.GHCR_IO_PASSWORD }} | |
- name: Push to GHCR | |
if: github.ref == 'refs/heads/current' | |
run: | | |
mvn -B -DskipITs --ntp -P docker install docker:build docker:push |