Add cicd with custom nginx image

This commit is contained in:
Federico Bologni 2023-05-29 07:22:31 +02:00
parent af49f15ff3
commit b2323310a8
4 changed files with 13 additions and 2 deletions

View file

@ -1 +1,5 @@
.woodpecker
.woodpecker
Dockerfile
.dockerignore
.gitignore
.git

View file

@ -8,7 +8,7 @@ pipeline:
# Log into docker registry
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
# Build image
- docker-compose -f .woodpecker/docker-compose.yml build pianello-web-app
- docker-compose build pianello-web-app
- docker push git.webdeploy.it/pianello/pianello-web-app:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View file

@ -0,0 +1,7 @@
FROM nginx
EXPOSE 80
RUN rm -rf /usr/share/nginx/html/*
COPY . /usr/share/nginx/html/

0
index.html Normal file
View file