pipeline fix
This commit is contained in:
@@ -9,8 +9,12 @@ steps:
|
|||||||
<<: *environment
|
<<: *environment
|
||||||
XDG_RUNTIME_DIR: /tmp
|
XDG_RUNTIME_DIR: /tmp
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache zip
|
||||||
- make build
|
- make build
|
||||||
- make export
|
- make export
|
||||||
|
- VERSION=$(sed -n 's/^-- version: //p' ${GAME_NAME}.${GAME_LANG} | head -n 1)
|
||||||
|
- zip -r ${GAME_NAME}.html.zip "$VERSION"
|
||||||
|
- echo $VERSION > .version
|
||||||
|
|
||||||
- name: artifact
|
- name: artifact
|
||||||
image: alpine
|
image: alpine
|
||||||
@@ -25,7 +29,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache openssh-client sshpass
|
- apk add --no-cache openssh-client sshpass
|
||||||
- mkdir -p /root/.ssh
|
- mkdir -p /root/.ssh
|
||||||
- sshpass -p $DROPAREA_SSH_PASSWORD scp -o StrictHostKeyChecking=no -P $DROPAREA_PORT $GAME_NAME.$GAME_LANG $GAME_NAME.tic $GAME_NAME.html.zip $DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH/$GAME_NAME/
|
- VERSION=$(cat .version)
|
||||||
|
- sshpass -p $DROPAREA_SSH_PASSWORD ssh -p $DROPAREA_PORT $DROPAREA_USER@$DROPAREA_HOST "mkdir -p $DROPAREA_TARGET_PATH/$GAME_NAME/$VERSION"
|
||||||
|
- sshpass -p $DROPAREA_SSH_PASSWORD scp -o StrictHostKeyChecking=no -P $DROPAREA_PORT $GAME_NAME.$GAME_LANG $GAME_NAME.tic $GAME_NAME.html.zip $DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH/$GAME_NAME/$VERSION/
|
||||||
|
|
||||||
- name: update
|
- name: update
|
||||||
image: alpine
|
image: alpine
|
||||||
@@ -36,4 +42,5 @@ steps:
|
|||||||
from_secret: update_secret_key
|
from_secret: update_secret_key
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80"
|
- VERSION=$(cat .version)
|
||||||
|
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80&version=$VERSION"
|
||||||
Reference in New Issue
Block a user