Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a0d7e5d
Create Dockerfile
Antoine-3545 Oct 1, 2025
a95e699
Update Dockerfile
Antoine-3545 Oct 1, 2025
f3fdf1e
Update Dockerfile
Antoine-3545 Oct 1, 2025
8d0bf78
Update Dockerfile
Antoine-3545 Oct 1, 2025
a0ba1dc
Update Dockerfile
Antoine-3545 Oct 1, 2025
05c7e5b
Update Dockerfile
Antoine-3545 Oct 1, 2025
2279cfb
Update Dockerfile
Antoine-3545 Oct 1, 2025
6a07a4e
Mise à jour du Dockerfile pour installer file
Antoine-3545 Oct 1, 2025
23c4d07
Résolution des conflits
Antoine-3545 Oct 1, 2025
b397a24
Update Dockerfile
Antoine-3545 Oct 1, 2025
7aec79b
Update Dockerfile
Antoine-3545 Oct 1, 2025
05a8a91
Ajout du workflow GitHub Actions pour develop
Antoine-3545 Oct 1, 2025
0458383
Test workflow self-hosted
Antoine-3545 Oct 1, 2025
b02c61e
Remplacement JPEG corrompu
Antoine-3545 Oct 1, 2025
e23758f
Mettre à jour .gitignore pour ignorer actions-runner et fichiers Zone…
Antoine-3545 Oct 1, 2025
49799ef
Ajout du workflow test-memory-2026 pour vérifier les JPEG
Antoine-3545 Oct 1, 2025
0c53a71
Ajout du JPEG de remplacement
Antoine-3545 Oct 1, 2025
43ce4cc
Modification du workflow
Antoine-3545 Oct 1, 2025
49a4873
Remplacement automatique des JPEG corrompus
actions-user Oct 1, 2025
c0fdb1d
Delete imagetest.jpg
Antoine-3545 Oct 1, 2025
56517f5
Ajout du job build-memory-2026
Antoine-3545 Oct 1, 2025
c507651
Merge remote-tracking branch 'origin/develop' into develop
Antoine-3545 Oct 1, 2025
2e3b80a
Ajout du job build-memory-2026
Antoine-3545 Oct 1, 2025
7484e4e
Ajout du job push-memory-2026 vers Docker Hub
Antoine-3545 Oct 1, 2025
782e699
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
41d224c
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
1343fbc
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
68f4be1
Trigger workflow
Antoine-3545 Oct 1, 2025
7d6553a
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
2e1f283
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
bca7a5e
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
8ecbca7
Ajout du job deploy-memory-2026
Antoine-3545 Oct 1, 2025
9c5f3ba
Correction complète du workflow YAML
Antoine-3545 Oct 1, 2025
951dbb7
Modification du port
Antoine-3545 Oct 1, 2025
48fbeae
Adapt deploy job to use docker-compose
Antoine-3545 Oct 1, 2025
6262a17
Adapt deploy job to use docker-compose
Antoine-3545 Oct 1, 2025
23c4113
Adapt deploy job to use docker-compose
Antoine-3545 Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .github/workflows/develop-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Develop CI

on:
push:
branches:
- develop

jobs:
test-memory-2026:
name: Test JPEG files
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- name: Verify 'file' command
run: |
which file

- name: Test and replace JPEGs
run: |
for f in $(git ls-files '*.jpg'); do
FILE_TYPE=$(file "$f")
if [[ "$FILE_TYPE" != *"JPEG image data"* ]]; then
cp html/replacement.jpg "$f"
fi
done

- name: Commit replaced JPEGs
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git add '*.jpg'
git commit -m "Remplacement JPEG corrompus" || echo "Rien à commit"
git push origin develop || echo "Push échoué"

build-memory-2026:
name: Build Docker image
runs-on: self-hosted
needs: test-memory-2026
steps:
- uses: actions/checkout@v3

- name: Build Docker image
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/memory-2026 .

push-memory-2026:
name: Push Docker image
runs-on: self-hosted
needs: build-memory-2026
steps:
- name: Login to Docker Hub
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: Push Docker image
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/memory-2026

deploy-memory-2026:
name: Deploy Docker container with Compose
runs-on: self-hosted
needs: push-memory-2026
steps:
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa

- name: Deploy with docker-compose
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \
"cd ~/memory && \
docker-compose pull && \
docker rm -f memory-2026 || true && \
docker-compose up -d"

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.DS_Store
actions-runner/
*.Zone.Identifier
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:bullseye

RUN apt-get update \
&& apt-get install -y nginx file \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update \
&& apt-get install -y nginx file \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /var/concentration/html

COPY html/ /var/concentration/html/

COPY conf/nginx.conf /etc/nginx/nginx.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.8'

services:
memory-2026:
image: antoine3545/memory-2026:latest
container_name: memory-2026
ports:
- "8080:80"
restart: unless-stopped
Binary file modified html/data/0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/data/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/data/15.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/data/28.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/replacement.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.