-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwercker.yml
36 lines (36 loc) · 1.33 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
box:
id: octoblu/arm-node-compile
cmd: /bin/bash
build:
steps:
- script:
name: get-latest-tags
code: |
mkdir -p ~/.ssh
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sed -i'' -e 's/[email protected]:/https:\/\/github.com\//' .git/config
git fetch
- script:
name: save-version
code: |
echo "$(git describe --tags)" > "${WERCKER_OUTPUT_DIR}/VERSION"
echo "VERSION: $(cat "${WERCKER_OUTPUT_DIR}/VERSION")"
- script:
name: compile
code: |
compile "$WERCKER_SOURCE_DIR" "$WERCKER_OUTPUT_DIR"
mv "${WERCKER_OUTPUT_DIR}/app-linux-arm.tar.gz" "${WERCKER_OUTPUT_DIR}/xenserver-linux-arm.tar.gz"
# - internal/store-container
deploy:
steps:
- script:
name: upload to github
code: |
echo "Releasing: $(cat "${WERCKER_ROOT}/VERSION")"
github-release release -u octoblu -r meshblu-connector-xenserver --tag "$(cat "${WERCKER_ROOT}/VERSION")" || echo "Already released, skipping"
github-release upload \
--user octoblu \
--repo meshblu-connector-xenserver \
--tag "$(cat "${WERCKER_ROOT}/VERSION")" \
--name "xenserver-linux-arm.tar.gz" \
--file "${WERCKER_ROOT}/xenserver-linux-arm.tar.gz"