-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 952 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
cache-dependency-path: 'backend/pom.xml' # optional
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
mvn -B package
./build.sh
working-directory: ./backend
- name: Release
uses: softprops/action-gh-release@v1
with:
files: backend/traget/app/backend/target/code-with-quarkus-dev.jar
- run: echo "🍏 This job's status is ${{ job.status }}."
- run : |
./build.sh
working-directory: ./k8s