-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 834 Bytes
/
Copy pathci-cd.yml
File metadata and controls
29 lines (28 loc) · 834 Bytes
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
name: BetterReads
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build Project
run: mvn clean install -DskipTests
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: 'BetterReads'
environment_name: 'BetterReads-env'
version_label: ${{ github.sha }}
region: ap-south-1
deployment_package: target/betterreads-0.0.1-SNAPSHOT.jar