Compare commits
2 commits
6267e0baf8
...
063a3d637f
Author | SHA1 | Date | |
---|---|---|---|
|
063a3d637f | ||
|
af616a3e2b |
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
tags: true
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: debian
|
image: debian
|
||||||
|
@ -10,10 +15,14 @@ pipeline:
|
||||||
- echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf
|
- echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf
|
||||||
- ldconfig
|
- ldconfig
|
||||||
- ./tests.sh --quiet
|
- ./tests.sh --quiet
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
build:
|
build:
|
||||||
image: debian
|
image: debian
|
||||||
when:
|
when:
|
||||||
|
event: tag
|
||||||
tag: v*
|
tag: v*
|
||||||
|
branch: master
|
||||||
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
|
||||||
|
@ -23,12 +32,16 @@ pipeline:
|
||||||
publish:
|
publish:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
when:
|
when:
|
||||||
|
event: tag
|
||||||
tag: v*
|
tag: v*
|
||||||
|
branch: master
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://gitea.zionetrix.net
|
base_url: https://gitea.zionetrix.net
|
||||||
files: dist/* deb_dist/*
|
files:
|
||||||
|
- dist/*
|
||||||
|
- deb_dist/*
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
- md5
|
||||||
- sha512
|
- sha512
|
||||||
|
|
3
build.sh
3
build.sh
|
@ -9,9 +9,6 @@ cd $( dirname $0 )
|
||||||
echo "Clean previous build..."
|
echo "Clean previous build..."
|
||||||
rm -fr dist deb_dist
|
rm -fr dist deb_dist
|
||||||
|
|
||||||
echo "Fetch git tags..."
|
|
||||||
git fetch --tags
|
|
||||||
|
|
||||||
echo "Detect version using git describe..."
|
echo "Detect version using git describe..."
|
||||||
VERSION="$( git describe --tags|sed 's/^[^0-9]*//' )"
|
VERSION="$( git describe --tags|sed 's/^[^0-9]*//' )"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue