update .drone.yml
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2022-05-06 16:23:26 +01:00
parent 59bb7ba89c
commit d56efd00e4

View File

@@ -20,7 +20,7 @@ steps:
- name: checkout tag - name: checkout tag
image: alpine/git image: alpine/git
commands: commands:
- cd ox - cd bottom
- git fetch --all --tags - git fetch --all --tags
- git checkout tags/${DRONE_TAG} - git checkout tags/${DRONE_TAG}
depends_on: depends_on:
@@ -28,7 +28,7 @@ steps:
- name: cargo build - name: cargo build
image: rust:latest image: rust:latest
commands: commands:
- cd ox - cd bottom
- cargo build --release --target x86_64-unknown-linux-gnu - cargo build --release --target x86_64-unknown-linux-gnu
- cd target/x86_64-unknown-linux-gnu/release - cd target/x86_64-unknown-linux-gnu/release
depends_on: depends_on:
@@ -37,17 +37,17 @@ steps:
image: vbatts/slackware:14.2 image: vbatts/slackware:14.2
commands: commands:
- mkdir -p dist/usr/sbin - mkdir -p dist/usr/sbin
- cp ox/target/x86_64-unknown-linux-gnu/release/ox ./dist/usr/sbin/ox - cp bottom/target/x86_64-unknown-linux-gnu/release/btm ./dist/usr/sbin/btm
- cp -R ./usr ./dist - cp -R ./usr ./dist
- chmod +x ./dist/usr/sbin/ox - chmod +x ./dist/usr/sbin/btm
- cd dist - cd dist
- makepkg -l y -c y ../unraid-ox-${DRONE_TAG}.txz - makepkg -l y -c y ../unraid-bottom-${DRONE_TAG}.txz
depends_on: depends_on:
- "cargo build" - "cargo build"
- name: prepare release - name: prepare release
image: vbatts/slackware:14.2 image: vbatts/slackware:14.2
commands: commands:
- echo "ox ${DRONE_TAG} - built@$(date '+%FT%TZ') [Drone ${DRONE_SYSTEM_VERSION}]" > ./release_note - echo "bottom ${DRONE_TAG} - built@$(date '+%FT%TZ') [Drone ${DRONE_SYSTEM_VERSION}]" > ./release_note
- cat ./release_note - cat ./release_note
depends_on: depends_on:
- "build slackware package" - "build slackware package"
@@ -58,7 +58,7 @@ steps:
from_secret: GITEA_KEY from_secret: GITEA_KEY
base_url: https://git.panaetius.co.uk base_url: https://git.panaetius.co.uk
files: files:
- ./unraid-ox-${DRONE_TAG}.txz - ./unraid-bottom-${DRONE_TAG}.txz
checksum: checksum:
- md5 - md5
title: ${DRONE_TAG} title: ${DRONE_TAG}
@@ -74,7 +74,7 @@ steps:
api_key: api_key:
from_secret: GITHUB_KEY from_secret: GITHUB_KEY
files: files:
- ./unraid-ox-${DRONE_TAG}.txz - ./unraid-bottom-${DRONE_TAG}.txz
checksum: checksum:
- md5 - md5
title: ${DRONE_TAG} title: ${DRONE_TAG}