Added mirror-json #14
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 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build container images | |
run: >- | |
./mvnw spring-boot:build-image -q -B -DskipTests | |
-Dsha="-${GITHUB_SHA::6}" | |
-Dspring-boot.build-image.publish=true | |
-Ddocker.publishRegistry.username=${{ github.actor }} | |
-Ddocker.publishRegistry.password=${{ secrets.GITHUB_TOKEN }} | |
-Ddocker.publishRegistry.url=ghcr.io |