Add cicd files
This commit is contained in:
parent
ed838c679d
commit
af49f15ff3
4 changed files with 26 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.woodpecker
|
16
.woodpecker/.build.yml
Normal file
16
.woodpecker/.build.yml
Normal 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
|
9
.woodpecker/docker-compose.yml
Normal file
9
.woodpecker/docker-compose.yml
Normal 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
0
Dockerfile
Normal file
Loading…
Reference in a new issue