Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c399d52
change gitignore
VerebelyPaulloup Oct 1, 2025
4f9b276
Create main.yml
VerebelyPaulloup Oct 1, 2025
42d5183
test action github
VerebelyPaulloup Oct 1, 2025
ee9d83b
test action github 2
VerebelyPaulloup Oct 1, 2025
d6de4ae
Update main.yml
VerebelyPaulloup Oct 1, 2025
69a88b7
test action github 3
VerebelyPaulloup Oct 1, 2025
fc58169
Update and rename main.yml to develop.yml
VerebelyPaulloup Oct 1, 2025
d7624bd
Update and rename develop.yml to main.yml
VerebelyPaulloup Oct 1, 2025
b93c345
Ajout du workflow CI/CD sur develop
VerebelyPaulloup Oct 1, 2025
99fc3c9
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
4a24d20
adding Dockerfile
VerebelyPaulloup Oct 1, 2025
db5d447
Update ci-cd.yml and add docker image build
VerebelyPaulloup Oct 1, 2025
afce885
Update ci-cd.yml adding push job
VerebelyPaulloup Oct 1, 2025
3b902ea
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
319d4fc
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
921dab0
Delete .github directory
VerebelyPaulloup Oct 1, 2025
18718e8
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
a7286b2
Update ci-cd.yml try with docker repo
VerebelyPaulloup Oct 1, 2025
2939283
fix jpg
VerebelyPaulloup Oct 1, 2025
19097cc
Merge branch 'develop' of https://github.com/VerebelyPaulloup/memory …
VerebelyPaulloup Oct 1, 2025
d98b6d8
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
941d6ed
Update ci-cd.yml add pulling and create container
VerebelyPaulloup Oct 1, 2025
ce5ac28
Update ci-cd.yml
VerebelyPaulloup Oct 1, 2025
23844e5
Merge pull request #1 from VerebelyPaulloup/develop
VerebelyPaulloup 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
64 changes: 64 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI TP Noté

on:
push:
branches: [develop]

jobs:
test-memory-2026:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Test JPEG
run: |
for file in $(find . -type f \( -name "*.jpg" -o -name "*.jpeg" \)); do
file "$file"
done

build-memory-2026:
needs: test-memory-2026
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v3

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


puush-memory-2026:
needs: build-memory-2026
runs-on: self-hosted
steps:
- name: Login Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Push the image
uses: docker/build-push-action@v6
with:
push: true
tags: docker.io/${{ secrets.DOCKER_USERNAME }}/memory-2026:latest

deploy-memory-2026:
needs: puush-memory-2026
runs-on: self-hosted
steps:
- name: Pull docker image
run: docker pull iwtpl/memory-2026:latest

- name: Build the container
run: docker run -d \
--name memory \
-p 8080:80 \
iwtpl/memory-2026:latest


5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.DS_Store
.DS_Store
Dockerfiile
test 2

24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM debian:bullseye

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

RUN mkdir -p /run/php

RUN rm -rf /var/www/html/*

COPY ./html /var/www/html
COPY ./html /var/concentration/html

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

EXPOSE 80

CMD php-fpm7.4 -F & nginx -g "daemon off;"


Binary file modified html/data/0.jpg
100755 → 100644
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
100755 → 100644
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
100755 → 100644
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
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.