Add pipeline for backend
This commit is contained in:
parent
91dfa990a2
commit
eebd9db2b5
26
backend/.woodpecker.yaml
Normal file
26
backend/.woodpecker.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user