Fix deploy tmp paths: drop unset gitea.run_attempt.
Deploy Ladill QR Plus / deploy (push) Successful in 39s
Deploy Ladill QR Plus / deploy (push) Successful in 39s
act_runner v0.2.x does not expose gitea.run_attempt, so release archive and workspace paths rendered with a trailing dash. Use gitea.run_id only, matching the Meet/CRM deploy workflows.
This commit is contained in:
@@ -19,8 +19,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_ROOT: /tmp/ladill-node-22-r1
|
NODE_ROOT: /tmp/ladill-node-22-r1
|
||||||
NODE_VERSION: "22.14.0"
|
NODE_VERSION: "22.14.0"
|
||||||
RELEASE_ARCHIVE: /tmp/ladill-qr-plus-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz
|
# act_runner v0.2.x does not expose gitea.run_attempt — use run_id only.
|
||||||
WORKSPACE: /tmp/${{ gitea.repository_owner }}-qr-plus-${{ gitea.run_id }}-${{ gitea.run_attempt }}
|
RELEASE_ARCHIVE: /tmp/ladill-qr-plus-release-${{ gitea.run_id }}.tgz
|
||||||
|
WORKSPACE: /tmp/${{ gitea.repository_owner }}-qr-plus-${{ gitea.run_id }}
|
||||||
LADILL_APP_ROOT: /var/www/ladill-qr-plus
|
LADILL_APP_ROOT: /var/www/ladill-qr-plus
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -79,7 +80,7 @@ jobs:
|
|||||||
- name: Deploy release
|
- name: Deploy release
|
||||||
shell: bash {0}
|
shell: bash {0}
|
||||||
env:
|
env:
|
||||||
LADILL_RELEASE_ARCHIVE: /tmp/ladill-qr-plus-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz
|
LADILL_RELEASE_ARCHIVE: /tmp/ladill-qr-plus-release-${{ gitea.run_id }}.tgz
|
||||||
run: |
|
run: |
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
: "${LADILL_APP_ROOT:?Set LADILL_APP_ROOT}"
|
: "${LADILL_APP_ROOT:?Set LADILL_APP_ROOT}"
|
||||||
|
|||||||
Reference in New Issue
Block a user