From 6564dbbadc6ac2556d8dbeac67e2707a2548a2f3 Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Mon, 2 Oct 2023 23:22:01 +0200 Subject: [PATCH] Rewrite urls --- .drone.yml | 11 +++++++++++ README.md | 4 +++- docker/Dockerfile | 5 ++--- index.html | 24 +++++++++++++----------- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index dcba6a3..d5578e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,13 @@ steps: sonar_token: from_secret: sonar_token + - name: rewrite-urls + image: busybox:latest + commands: + - find . -type f -exec sed -i "s|\"/|\"$${PLUGIN_CONTAINER_PATH}|g" {} + + settings: + container_path: /containers/clementfreville2-drone-health/ + - name: docker-build-and-push image: plugins/docker settings: @@ -27,6 +34,8 @@ steps: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD + depends_on: + - rewrite-urls - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest @@ -36,3 +45,5 @@ steps: COMMAND: create OVERWRITE: true CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: clement.freville2-drone-health/ + depends_on: + - docker-build-and-push diff --git a/README.md b/README.md index 79efd91..5eb38de 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ # drone-health -A simple template for a web site. \ No newline at end of file +An updated simple template for a web site. + +Visit your website locally with `php -S localhost:2000`. diff --git a/docker/Dockerfile b/docker/Dockerfile index b150ef5..6fd0d48 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,3 @@ -FROM php:8.0-apache as base +FROM php:8.2-apache + COPY . /var/www/html/ -WORKDIR /var/www/html/ -EXPOSE 80 \ No newline at end of file diff --git a/index.html b/index.html index 046aa14..922d1b3 100644 --- a/index.html +++ b/index.html @@ -1,34 +1,36 @@ - - + + drone-health - One incredible styled html page - + - + - -

drone-health is my first page, and it has got style!

+
+

drone-health is my 99th page, and it has got style!

-

Welcome on this template html/css project +

Welcome on this template html/css project

-

Very simple, some links, some menu... make it your own -… +

Very simple, some links, some menu... make it your own

-

I have nothing more to say +

I have nothing more to say

+
- + \ No newline at end of file