Add single woodpecker.yaml to both front and back

This commit is contained in:
dvirlabs 2025-06-03 08:05:56 +03:00
parent 72ff065186
commit ddb27fccdf
2 changed files with 16 additions and 30 deletions

View File

@ -13,13 +13,26 @@ steps:
- export SHORT_SHA=${CI_COMMIT_SHA:0:7}
- echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env
- name: docker
- name: build-frontend
image: woodpeckerci/plugin-docker
settings:
repo: harbor.dvirlabs.com/my-apps/navix-frontend
tag_file: .tags.env
dockerfile: Dockerfile
context: .
dockerfile: frontend/Dockerfile
context: frontend
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user
password:
from_secret: harbor_password
- name: build-backend
image: woodpeckerci/plugin-docker
settings:
repo: harbor.dvirlabs.com/my-apps/navix-backend
tag_file: .tags.env
dockerfile: backend/Dockerfile
context: backend
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user

View File

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