-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 912 Bytes
/
maven.yml
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
33
34
35
36
37
38
39
40
name: Java CI with Maven
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Build with Maven
run: chmod +x mvnw
- name: Install
run: echo 'Hello Badri Paudel'
- name: Run APP
run: ./mvnw spring-boot:run
- name : Build and push docker image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: badripaudel77/info_keeper_main_image
tags: v1, latest
registry: registry-url.io
dockerfile: Dockerfile.ci
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}