pipeline update
This commit is contained in:
@@ -6,9 +6,9 @@ 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)
|
||||
- echo "$VERSION" > .version
|
||||
- 'echo "Detected version: $VERSION"'
|
||||
- echo "Detected version:" $VERSION
|
||||
|
||||
- name: build
|
||||
image: git.teletype.hu/internal/tic80pro:latest
|
||||
@@ -18,7 +18,7 @@ steps:
|
||||
commands:
|
||||
- apt-get update && apt-get install -y zip
|
||||
- VERSION=$(cat .version)
|
||||
- echo "Building version $VERSION"
|
||||
- echo "Building version" $VERSION
|
||||
- make build VERSION="$VERSION"
|
||||
- make export VERSION="$VERSION"
|
||||
- echo "Generated files:"
|
||||
@@ -38,8 +38,8 @@ steps:
|
||||
- apk add --no-cache openssh-client sshpass
|
||||
- mkdir -p /root/.ssh
|
||||
- VERSION=$(cat .version)
|
||||
- echo "VERSION (artifact step):$VERSION"
|
||||
- echo "SCP Target Path: $DROPAREA_TARGET_PATH/$GAME_NAME/$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"
|
||||
- echo "Files to upload:"
|
||||
- ls -lh $GAME_NAME-$VERSION.* $GAME_NAME.tic $GAME_NAME.html.zip
|
||||
@@ -56,5 +56,5 @@ steps:
|
||||
commands:
|
||||
- apk add --no-cache curl
|
||||
- VERSION=$(cat .version)
|
||||
- echo "Triggering update for version $VERSION"
|
||||
- echo "Triggering update for version" $VERSION
|
||||
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80&version=$VERSION"
|
||||
Reference in New Issue
Block a user