diff options
| author | Michael Grote | 2023-11-07 16:24:06 +0100 |
|---|---|---|
| committer | Michael Grote | 2023-11-07 16:24:06 +0100 |
| commit | 472e2d5d967daf74ffaedda439d4e5f4986e1d05 (patch) | |
| tree | d07cf5b83bdcdf64a6b2af3903560d2dc8bb39b0 | |
| parent | 1cf25120dda4c1ace10f11e435308feec9e02a54 (diff) | |
ci: debug
| -rw-r--r-- | .woodpecker/build.yml | 50 |
1 files changed, 12 insertions, 38 deletions
diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 5919f2e..a8a0bda 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -5,48 +5,22 @@ name: build depends_on: - lint steps: - build_package: - image: registry.mgrote.net/fpm:latest + + + upload: + image: registry.mgrote.net/allzweckcontainer:latest environment: DEBIAN_FRONTEND: noninteractive commands: - - git clone https://git.mgrote.net/Mirror/sanoid.git - - cp sanoid-prune.service sanoid/ - - cp sanoid.service sanoid/ - - cp sanoid.timer sanoid/ + - ls -lah + - pwd - cd sanoid - - # checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!) - #- git checkout $(git tag | grep "^v" | tail -n 1) - #- export version=$(git tag | grep "^v" | tail -n 1 | tr -d v) - - export version=3.0.4 - ls -lah - pwd - - chmod 0755 sanoid - - chmod 0755 syncoid + - export version=3.0.4 + - echo $version - | - fpm \ - -s dir \ - -t deb \ - --name sanoid \ - --architecture all \ - --description "sanoid deb package" \ - --url "https://git.mgrote.net/mg/sanoid-deb" \ - -p sanoid_$(echo $version).deb \ - -v $(echo $version) \ - --depends debhelper \ - --depends libcapture-tiny-perl \ - --depends libconfig-inifiles-perl \ - --depends pv \ - --depends lzop \ - --depends mbuffer \ - --depends build-essential \ - --depends git \ - sanoid-prune.service=/lib/systemd/system/sanoid-prune.service \ - sanoid.service=/lib/systemd/system/sanoid.service \ - sanoid.timer=/lib/systemd/system/sanoid.timer \ - sanoid=/usr/bin/sanoid \ - syncoid=/usr/bin/syncoid \ - sanoid.conf=/etc/sanoid/sanoid.conf \ - sanoid.defaults.conf=/etc/sanoid/sanoid.defaults.conf - - pwd - - ls -lah + curl -X POST -H "token: $AUTH_TOKEN" -F "file=@./sanoid_$(echo $version).deb" http://docker10.grote.lan:5040/upload + secrets: + - source: httpd-api-server-token + target: auth_token |