ci: update pipeline
This commit is contained in:
+10
-5
@@ -10,8 +10,11 @@ jobs:
|
|||||||
name: Build & Run Unit Tests
|
name: Build & Run Unit Tests
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
# Remplacement de actions/checkout par un clone Git manuel sécurisé
|
||||||
uses: actions/checkout@v4
|
- name: Clone repository
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 https://oauth2:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Run Maven Tests in Docker
|
- name: Run Maven Tests in Docker
|
||||||
run: |
|
run: |
|
||||||
@@ -26,10 +29,12 @@ jobs:
|
|||||||
needs: test
|
needs: test
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 https://oauth2:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Deploy with Docker Compose
|
- name: Deploy with Docker Compose
|
||||||
run: |
|
run: |
|
||||||
docker compose down app || true
|
docker compose down app || true
|
||||||
docker compose up -d --build app
|
docker compose up -d --build app
|
||||||
|
|||||||
Reference in New Issue
Block a user