CI: build & publish only when tag
This commit is contained in:
parent
a618f588ba
commit
07ca0729fe
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,8 @@ pipeline:
|
||||||
- ./tests.sh --quiet
|
- ./tests.sh --quiet
|
||||||
build:
|
build:
|
||||||
image: debian
|
image: debian
|
||||||
|
when:
|
||||||
|
tag: *
|
||||||
commands:
|
commands:
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
|
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
|
||||||
|
@ -20,6 +22,8 @@ pipeline:
|
||||||
- rm -fr deb_dist/python3-mylib-*
|
- rm -fr deb_dist/python3-mylib-*
|
||||||
publish:
|
publish:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
when:
|
||||||
|
tag: *
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
|
|
Loading…
Reference in a new issue