From d19ea39f08a3d0f0fddbec6f0f0535dd968678c8 Mon Sep 17 00:00:00 2001 From: Aleksandr Trushkin Date: Sun, 10 Jan 2021 23:31:03 +0300 Subject: [PATCH] update deploy template --- .drone.jsonnet | 2 +- .drone.yml | 10 +++++----- makefile | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index ad0e83d..ae51f5a 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -23,7 +23,7 @@ local step(name, depends=[], commands=[], env={}) = { commands: commands, environment: env + { CARGO_TARGET_DIR: "/cache/target", - APP_NAME: "deploytest", + APP_NAME: app_name, }, }; diff --git a/.drone.yml b/.drone.yml index 67fd199..b1f7b67 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: commands: - cargo test --release --target=armv7-unknown-linux-gnueabihf environment: - APP_NAME: deploytest + APP_NAME: altherego CARGO_TARGET_DIR: /cache/target volumes: - name: cargo @@ -28,7 +28,7 @@ steps: commands: - cargo test --release --target=armv7-unknown-linux-gnueabihf environment: - APP_NAME: deploytest + APP_NAME: altherego CARGO_TARGET_DIR: /cache/target volumes: - name: cargo @@ -45,7 +45,7 @@ steps: commands: - cargo build --release --target=armv7-unknown-linux-gnueabihf environment: - APP_NAME: deploytest + APP_NAME: altherego CARGO_TARGET_DIR: /cache/target volumes: - name: cargo @@ -62,7 +62,7 @@ steps: commands: - sh scripts/deploy.sh environment: - APP_NAME: deploytest + APP_NAME: altherego CARGO_TARGET_DIR: /cache/target SSH_PRIVATE_KEY: from_secret: ssh_pk_base64 @@ -91,6 +91,6 @@ volumes: --- kind: signature -hmac: 5d42ee9863b09aa2c5b1140903b659ec25660acdab89f20a6d070c30d46898b0 +hmac: 9636ad34a72c9a41ad90c91729e8b711579563345ae485a4ea2ee40eb3ff46e4 ... diff --git a/makefile b/makefile index 1b28bd6..f9fa345 100755 --- a/makefile +++ b/makefile @@ -33,7 +33,7 @@ docker_build_release_arm: dronefile: drone jsonnet \ --format \ - -V image=${APP_NAME} \ + -V app_name=${APP_NAME} \ -V image=${IMAGE} \ -V target_arch=${TARGET_ARCH} drone sign frx/altherego --save