update deploy template

This commit is contained in:
Aleksandr Trushkin
2021-01-10 23:31:03 +03:00
parent 2823f12165
commit d19ea39f08
3 changed files with 7 additions and 7 deletions

View File

@ -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,
},
};

View File

@ -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
...

View File

@ -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