navix/old/frontend/.woodpecker.yaml
2025-06-03 05:42:50 +03:00

27 lines
584 B
YAML

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-frontend
tag_file: .tags.env
dockerfile: Dockerfile
context: .
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user
password:
from_secret: harbor_password