Add woodpecker yaml to frontend
This commit is contained in:
parent
a3d905e95e
commit
72ff065186
@ -1,6 +1,7 @@
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
branch:
|
||||
- master
|
||||
|
||||
|
||||
27
frontend/.woodpecker.yaml
Normal file
27
frontend/.woodpecker.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user