Fix woodpecker
ci/woodpecker/tag/build Pipeline was successful Details
ci/woodpecker/tag/deploy Pipeline failed Details
ci/woodpecker/release/build Pipeline was successful Details
ci/woodpecker/release/deploy Pipeline was successful Details

This commit is contained in:
Mike Nolan 2024-07-07 19:16:43 -05:00
parent e39f4e868c
commit b27ae62e09
4 changed files with 21 additions and 13 deletions

View File

@ -1,7 +1,10 @@
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:8.0
when:
event: push
branch: master
commands:
- mkdir publish
- mkdir publish/j
- touch publish/j/demi
- apt update -y
- apt install -y make zip tar
- make

13
.woodpecker/.deploy.yaml Normal file
View File

@ -0,0 +1,13 @@
steps:
- name: deploy
image: mcr.microsoft.com/dotnet/sdk:8.0
when:
event: tag
branch: master
commands:
- apt update -y
- apt install -y make zip tar
- make
- bash publish.sh
volumes:
- /mnt/20TB/Artifacts:/deploy_dir

View File

@ -1,10 +0,0 @@
steps:
- name: deploy
image: woodpeckerci/plugin-release
settings:
files:
- 'publish/j/demi'
api_key:
from_secret: API_KEY
depends_on:
- build

2
publish.sh Normal file
View File

@ -0,0 +1,2 @@
. /deploy_dir/setpath.sh
cp -r publish/ "$DEPLOY_DIR"