[drone] Move to deployment folder before packaging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-02-09 13:57:13 +01:00
parent 7833fcd354
commit 22c5e2238f
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8

View file

@ -24,15 +24,26 @@ steps:
image: clux/muslrust image: clux/muslrust
commands: commands:
- cargo build --release - cargo build --release
- strip target/x86_64-unknown-linux-musl/release/coffer-server - mkdir coffer-${DRONE_TAG}-x86_64-musl
- strip target/x86_64-unknown-linux-musl/release/coffer-client - mv target/x86_64-unknown-linux-musl/release/coffer-server \
- strip target/x86_64-unknown-linux-musl/release/coffer-companion target/x86_64-unknown-linux-musl/release/coffer-client \
target/x86_64-unknown-linux-musl/release/coffer-companion \
coffer-${DRONE_TAG}-x86_64-musl
- strip coffer-${DRONE_TAG}-x86_64-musl/coffer-server
- strip coffer-${DRONE_TAG}-x86_64-musl/coffer-client
- strip coffer-${DRONE_TAG}-x86_64-musl/coffer-companion
- name: package - name: package
image: alpine image: alpine
commands: commands:
- tar cjf coffer-${DRONE_TAG}-x86_64-musl.tar.bz2 target/x86_64-unknown-linux-musl/release/coffer-server target/x86_64-unknown-linux-musl/release/coffer-client target/x86_64-unknown-linux-musl/release/coffer-companion - tar cjf coffer-${DRONE_TAG}-x86_64-musl.tar.bz2 \
- tar czf coffer-${DRONE_TAG}-x86_64-musl.tar.gz target/x86_64-unknown-linux-musl/release/coffer-server target/x86_64-unknown-linux-musl/release/coffer-client target/x86_64-unknown-linux-musl/release/coffer-companion coffer-${DRONE_TAG}-x86_64-musl/coffer-server \
coffer-${DRONE_TAG}-x86_64-musl/coffer-client \
coffer-${DRONE_TAG}-x86_64-musl/coffer-companion
- tar czf coffer-${DRONE_TAG}-x86_64-musl.tar.gz \
coffer-${DRONE_TAG}-x86_64-musl/coffer-server \
coffer-${DRONE_TAG}-x86_64-musl/coffer-client \
coffer-${DRONE_TAG}-x86_64-musl/coffer-companion
- name: publish - name: publish
image: plugins/gitea-release image: plugins/gitea-release