Add woodpecker yaml to frontend

This commit is contained in:
dvirlabs 2025-06-03 07:56:03 +03:00
parent a3d905e95e
commit 72ff065186
2 changed files with 28 additions and 0 deletions

View File

@ -1,6 +1,7 @@
when:
event:
- push
- pull_request
branch:
- master

27
frontend/.woodpecker.yaml Normal file
View File

@ -0,0 +1,27 @@
when:
event:
- push
- pull_request
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-frontend
tag_file: .tags.env
dockerfile: Dockerfile
context: .
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user
password:
from_secret: harbor_password