This commit is contained in:
27
.github/workflows/ci.yaml
vendored
Normal file
27
.github/workflows/ci.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: CI
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
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: Setup project link
|
||||
run: ln -s target /project
|
||||
|
||||
- name: Build Runner
|
||||
run: ./mvnw --no-transfer-progress package -Dnative
|
||||
|
||||
- name: Build Container
|
||||
run: docker build -f src/main/docker/Dockerfile.native-micro -t mythodea-api .
|
||||
|
||||
# - name: Deploy
|
||||
# run: "docker compose up -d"
|
||||
Reference in New Issue
Block a user