Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
waelABDALLAH1 committed Nov 22, 2024
1 parent 32c63c0 commit de190da
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
Binary file added .github/workflows/.DS_Store
Binary file not shown.
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/catalog-service-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: |
sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} "ls -l ~/service-catalog/service-catalog.jar"
- name: Show system resources usage after file transfer

run: |
# Vérifier l'utilisation des ressources sur le serveur après le transfert
echo "Utilisation des ressources sur le serveur VPS après transfert :"
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI/CD Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

services:
docker:
image: docker:19.03.12
options: --privileged
ports:
- 5434:5432
- 5435:5432
- 5436:5432
- 5437:5432
- 5438:5432

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'

- name: Build with Quarkus
run: |
cd catalog/
cd catalog-service/
quarkus build
- name: Run Quarkus tests
run: |
cd catalog/
cd catalog-service/
quarkus test
- name: Build and run Docker Compose
run: |
docker-compose -f docker-compose.yml up --build -d
- name: Deploy
run: |
docker-compose -f docker-compose.yml up -d

0 comments on commit de190da

Please sign in to comment.