🚀 fix: CD job and add Dockerfile
continuous-integration/drone/push Build is failing Details

master
thdupin2 1 year ago
parent 524843f26e
commit bf1cbe3422

@ -6,6 +6,19 @@ trigger:
event: event:
- push - push
steps:
- name: docker-build-and-push
image: plugins/docker
settings:
dockerfile: Dockerfile
context: ./
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/theo.dupin/portfolio
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
steps: steps:
- 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

@ -0,0 +1,11 @@
# Utilise l'image de base de Nginx
FROM nginx:alpine
# Copie le contenu de ton site web dans le répertoire par défaut de Nginx
COPY . /usr/share/nginx/html
# Expose le port 80 pour que le serveur web soit accessible
EXPOSE 80
# Commande par défaut pour lancer Nginx en mode non-démon
CMD ["nginx", "-g", "daemon off;"]
Loading…
Cancel
Save