Add pipeline for backend

This commit is contained in:
dvirlabs 2025-06-03 03:34:04 +03:00
parent 91dfa990a2
commit eebd9db2b5
3 changed files with 26 additions and 0 deletions

26
backend/.woodpecker.yaml Normal file
View File

@ -0,0 +1,26 @@
when:
event:
- push
branch:
- master
steps:
- name: tag
image: alpine
commands:
- export TAG_DATE=$(date +%Y%m%d)
- export SHORT_SHA=${CI_COMMIT_SHA:0:7}
- echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env
- name: docker
image: woodpeckerci/plugin-docker
settings:
repo: harbor.dvirlabs.com/my-apps/navix-backend
tag_file: .tags.env
dockerfile: Dockerfile
context: .
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user
password:
from_secret: harbor_password