Add cicd files

This commit is contained in:
Federico Bologni 2023-05-28 12:56:31 +02:00
parent ed838c679d
commit af49f15ff3
4 changed files with 26 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
.woodpecker

16
.woodpecker/.build.yml Normal file
View file

@ -0,0 +1,16 @@
pipeline:
build:
image: alpine:3.14
secrets: [docker_password, docker_username]
commands:
# Install deps
- apk add docker docker-compose jq
# 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 push git.webdeploy.it/pianello/pianello-web-app:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
branches: main

View file

@ -0,0 +1,9 @@
version: '3'
services:
pianello-web-app:
image: git.webdeploy.it/pianello/pianello-web-app
restart: always
build:
context: ../
dockerfile: Dockerfile

0
Dockerfile Normal file
View file