UNPKG

1.21 kBYAMLView Raw
1box:
2 id: octoblu/arm-node-compile
3 cmd: /bin/bash
4build:
5 steps:
6 - script:
7 name: get-latest-tags
8 code: |
9 mkdir -p ~/.ssh
10 echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
11 sed -i'' -e 's/git@github.com:/https:\/\/github.com\//' .git/config
12 git fetch
13 - script:
14 name: save-version
15 code: |
16 echo "$(git describe --tags)" > "${WERCKER_OUTPUT_DIR}/VERSION"
17 echo "VERSION: $(cat "${WERCKER_OUTPUT_DIR}/VERSION")"
18 - script:
19 name: compile
20 code: |
21 compile "$WERCKER_SOURCE_DIR" "$WERCKER_OUTPUT_DIR"
22 mv "${WERCKER_OUTPUT_DIR}/app-linux-arm.tar.gz" "${WERCKER_OUTPUT_DIR}/hue-button-linux-arm.tar.gz"
23 # - internal/store-container
24deploy:
25 steps:
26 - script:
27 name: upload to github
28 code: |
29 echo "Releasing: $(cat "${WERCKER_ROOT}/VERSION")"
30 github-release upload \
31 --user octoblu \
32 --repo meshblu-connector-hue-button \
33 --tag "$(cat "${WERCKER_ROOT}/VERSION")" \
34 --name "hue-button-linux-arm.tar.gz" \
35 --file "${WERCKER_ROOT}/hue-button-linux-arm.tar.gz"
36
\No newline at end of file