adding CI
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
36492c9942
commit
03656cbe69
@ -0,0 +1,31 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Portfolio
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: build-portfolio
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: ./site/Dockerfile
|
||||||
|
context: ./site
|
||||||
|
registry: hub.codefirst.iut.uca.fr
|
||||||
|
repo: hub.codefirst.iut.uca.fr/dorian.hodin/portfolio
|
||||||
|
username:
|
||||||
|
from_secret: SECRET_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: SECRET_PASSWD
|
||||||
|
|
||||||
|
- name: deploy-portfolio
|
||||||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||||||
|
environment:
|
||||||
|
IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/portfolio:latest
|
||||||
|
CONTAINERNAME: portfolio
|
||||||
|
COMMAND: create
|
||||||
|
OVERWRITE: true
|
||||||
|
ADMINS: dorianhodin,corentinrichard
|
||||||
|
depends_on: [ build-portfolio]
|
@ -0,0 +1,7 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
COPY index.html /usr/share/nginx/html/
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in new issue