-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.06 KB
/
pipeline-backend.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: WEMEET Backend Pipeline
on:
push:
branches:
- main
paths:
- src/main/java/com/videocall/server/**
- Dockerfile
pull_request:
branches:
- main
paths:
- src/main/java/com/videocall/server/**
- Dockerfile
jobs:
build:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
- name: Make mvnw executable
run: chmod +x ./mvnw
- name: Build with Maven
run: ./mvnw clean package -DskipTests
- name: Build Docker image
run: docker build -t quan0204/we-meet-server:1.0.0 .
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Push Docker image to Docker Hub
run: docker push quan0204/wordwaves-server:latest