/publish/<オーナー名>/<リポジトリ名>/latest
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1e42557659
commit
31deb821eb
|
|
@ -57,19 +57,19 @@ steps:
|
||||||
|
|
||||||
# --- 2. flash.j-code.org/download へ成果物を公開 ---
|
# --- 2. flash.j-code.org/download へ成果物を公開 ---
|
||||||
# /publish はランナー設定(DRONE_RUNNER_VOLUMES)でホストの flash/download に紐付いている
|
# /publish はランナー設定(DRONE_RUNNER_VOLUMES)でホストの flash/download に紐付いている
|
||||||
# 公開先: /download/<リポジトリ名>/latest/ (ブランチPush時)、/download/<リポジトリ名>/<タグ>/ (タグ時)
|
# 公開先: /download/<オーナー名>/<リポジトリ名>/latest/ (ブランチPush時)、/download/<オーナー名>/<リポジトリ名>/<タグ>/ (タグ時)
|
||||||
- name: publish-to-flash
|
- name: publish-to-flash
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if [ "$DRONE_BUILD_EVENT" = "tag" ]; then
|
if [ "$DRONE_BUILD_EVENT" = "tag" ]; then
|
||||||
DEST="/publish/$DRONE_REPO_NAME/$DRONE_TAG"
|
DEST="/publish/$DRONE_REPO/$DRONE_TAG"
|
||||||
else
|
else
|
||||||
DEST="/publish/$DRONE_REPO_NAME/latest"
|
DEST="/publish/$DRONE_REPO/latest"
|
||||||
fi
|
fi
|
||||||
mkdir -p "$DEST"
|
mkdir -p "$DEST"
|
||||||
cp build/bootloader.bin build/partitions.bin build/firmware.bin "$DEST/"
|
cp build/bootloader.bin build/partitions.bin build/firmware.bin "$DEST/"
|
||||||
chmod -R a+rX "/publish/$DRONE_REPO_NAME"
|
chmod -R a+rX "/publish/$DRONE_REPO_OWNER"
|
||||||
echo "公開先: https://flash.j-code.org/download/${DEST#/publish/}/"
|
echo "公開先: https://flash.j-code.org/download/${DEST#/publish/}/"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue