Rewrite urls
continuous-integration/drone/push Build is passing Details

master
Clément FRÉVILLE 2 years ago
parent 22f66558b1
commit 6564dbbadc

@ -16,6 +16,13 @@ steps:
sonar_token: sonar_token:
from_secret: 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 - name: docker-build-and-push
image: plugins/docker image: plugins/docker
settings: settings:
@ -27,6 +34,8 @@ steps:
from_secret: SECRET_REGISTRY_USERNAME from_secret: SECRET_REGISTRY_USERNAME
password: password:
from_secret: SECRET_REGISTRY_PASSWORD from_secret: SECRET_REGISTRY_PASSWORD
depends_on:
- rewrite-urls
- name: deploy-container - name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
@ -36,3 +45,5 @@ steps:
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: clement.freville2-drone-health/ CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: clement.freville2-drone-health/
depends_on:
- docker-build-and-push

@ -2,4 +2,6 @@
# drone-health # 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/ COPY . /var/www/html/
WORKDIR /var/www/html/
EXPOSE 80

@ -1,34 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <!DOCTYPE html>
<html> <html html="en">
<head> <head>
<title>drone-health - One incredible styled html page</title> <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> </head>
<body> <body>
<!-- Navigation menu --> <nav>
<ul class="navbar"> <ul class="navbar">
<li><a href="https://codefirst.iut.uca.fr/home">Code#0</a> <li><a href="https://codefirst.iut.uca.fr/home">Code#0</a>
<li><a href="http://iut.uca.fr">IUT</a> <li><a href="http://iut.uca.fr">IUT</a>
<li><a href="https://neilyoungarchives.com/">Very good music</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> <li><a href="https://www.youtube.com/watch?v=CY5dTBhRxOA">Very good music too!</a>
</ul> </ul>
</nav>
<!-- Main Content --> <section>
<h1>drone-health is my first page, and it has got style!</h1> <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 <p>Very simple, some links, some menu... make it your own</p>
&hellip;
<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> <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"/> 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> </a></address>
</footer>
</body> </body>
</html> </html>
Loading…
Cancel
Save