Add cicd with custom nginx image
This commit is contained in:
parent
af49f15ff3
commit
b2323310a8
4 changed files with 13 additions and 2 deletions
|
@ -1 +1,5 @@
|
||||||
.woodpecker
|
.woodpecker
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
.gitignore
|
||||||
|
.git
|
||||||
|
|
|
@ -8,7 +8,7 @@ pipeline:
|
||||||
# Log into docker registry
|
# Log into docker registry
|
||||||
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
||||||
# Build image
|
# 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
|
- docker push git.webdeploy.it/pianello/pianello-web-app:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
|
@ -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
0
index.html
Normal file
Loading…
Reference in a new issue