Rewrite urls

master
Clément FRÉVILLE 1 year ago
parent 22f66558b1
commit 6564dbbadc

@ -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

@ -2,4 +2,6 @@
# drone-health
A simple template for a web site.
An updated simple template for a web site.
Visit your website locally with `php -S localhost:2000`.

@ -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

@ -1,34 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<!DOCTYPE html>
<html html="en">
<head>
<title>drone-health - One incredible styled html page</title>
<link rel="stylesheet" href="clement.freville2-drone-health/mycoolstyle.css">
<link rel="stylesheet" href="/mycoolstyle.css">
</head>
<body>
<!-- Navigation menu -->
<nav>
<ul class="navbar">
<li><a href="https://codefirst.iut.uca.fr/home">Code#0</a>
<li><a href="http://iut.uca.fr">IUT</a>
<li><a href="https://neilyoungarchives.com/">Very good music</a>
<li><a href="https://www.youtube.com/watch?v=CY5dTBhRxOA">Very good music too!</a>
</ul>
</nav>
<!-- Main Content -->
<h1>drone-health is my first page, and it has got style!</h1>
<section>
<h1>drone-health is my 99th page, and it has got style!</h1>
<p>Welcome on this template html/css project
<p>Welcome on this template html/css project</p>
<p>Very simple, some links, some menu... make it your own
&hellip;
<p>Very simple, some links, some menu... make it your own</p>
<p>I have nothing more to say
<p>I have nothing more to say</p>
</section>
<!-- my footer -->
<footer>
<address>Template made in 2022<br>
with Code#0 <a href="https://codefirst.iut.uca.fr/home"><img src="images/CodeFirstLogo.png" alt="Code#0" align="middle" border="0" height="40px"/>
</a></address>
</footer>
</body>
</html>
Loading…
Cancel
Save