27 lines
660 B
YAML
27 lines
660 B
YAML
name: CI
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
deploy:
|
|
env:
|
|
REPO: ${{ github.event.repository.name }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '21'
|
|
|
|
- name: Build Runner
|
|
run: ./mvnw --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true
|
|
|
|
- name: Build Container
|
|
run: docker build -f src/main/docker/Dockerfile.native-micro -t ${{ env.REPO }} .
|
|
|
|
- name: Deploy
|
|
run: "docker compose up -d"
|