pipeline fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2026-01-26 21:18:14 +01:00
parent 52b61543fd
commit fcbe9fbf59
2 changed files with 12 additions and 11 deletions

View File

@@ -6,9 +6,10 @@ steps:
- name: version
image: alpine
commands:
- "VERSION=$(sed -n 's/^-- version: //p' $GAME_NAME.$GAME_LANG | head -n 1)"
- "VERSION=$(sed -n 's/^-- version: //p' $GAME_NAME.$GAME_LANG | head -n 1 | tr -d '[:space:]')"
- "echo VERSION is: $VERSION"
- "echo $VERSION > .version"
- "echo Detected version: $VERSION"
- "cat .version"
- name: build
image: git.teletype.hu/internal/tic80pro:latest
@@ -17,9 +18,10 @@ steps:
XDG_RUNTIME_DIR: /tmp
commands:
- "apt-get update && apt-get install -y zip"
- "VERSION=$(cat .version)"
- "echo Building version $VERSION"
- "make build VERSION=$VERSION"
- "cat .version"
- "export VERSION=$(cat .version)"
- "echo Building version: $VERSION"
- "make build"
- "make export VERSION=$VERSION"
- "echo Generated files:"
- "ls -lh $GAME_NAME-*.* $GAME_NAME.tic $GAME_NAME.html.zip"
@@ -37,7 +39,7 @@ steps:
commands:
- "apk add --no-cache openssh-client sshpass"
- "mkdir -p /root/.ssh"
- "VERSION=$(cat .version)"
- "export VERSION=$(cat .version)"
- "echo VERSION artifact step: $VERSION"
- "echo SCP Target Path: $DROPAREA_TARGET_PATH/$GAME_NAME/$VERSION/"
- "sshpass -p $DROPAREA_SSH_PASSWORD ssh -p $DROPAREA_PORT -o StrictHostKeyChecking=no $DROPAREA_USER@$DROPAREA_HOST mkdir -p $DROPAREA_TARGET_PATH/$GAME_NAME/$VERSION"
@@ -55,6 +57,6 @@ steps:
from_secret: update_secret_key
commands:
- "apk add --no-cache curl"
- "VERSION=$(cat .version)"
- "export VERSION=$(cat .version)"
- "echo Triggering update for version $VERSION"
- "curl $UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80&version=$VERSION"