This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
server/.github/workflows/build_deploy_dev.yml

32 lines
710 B
YAML
Raw Normal View History

2024-05-30 04:20:39 +02:00
name: build and publish docker image / deploy
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev"]
2024-05-30 04:20:39 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
with:
repository: 'learningpulse/server'
ref: 'dev'
token: '${{ secrets.token }}'
2024-05-30 05:57:47 +02:00
- name: 'Set up java 22'
2024-05-30 06:02:53 +02:00
uses: https://github.com/actions/setup-java@v3
2024-05-30 04:20:39 +02:00
with:
2024-05-30 06:02:53 +02:00
java-version: "21"
distribution: "temurin"
2024-05-30 05:57:47 +02:00
- name: "Setup maven"
2024-05-30 06:00:48 +02:00
uses: https://github.com/s4u/setup-maven-action@v1.13.0
2024-05-30 04:20:39 +02:00
- name: Build with Maven
run: mvn -Dtoken=${{ secrets.token }} clean compile jib:build -e
2024-05-30 04:20:39 +02:00