fix(ci): run legacy release on production runner
This commit is contained in:
1 parent
730042385d
commit
a0dee79b22
1 file changed
+6
-5
@@ -21,7 +21,9 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
name: deploy ${{ matrix.name }}
|
name: deploy ${{ matrix.name }}
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
# Legacy — тоже production-выпуск: выполняем на выделенном runner, а не
|
||||||
|
# на общем Alpine-пуле, чтобы не зависеть от внешних apk mirrors.
|
||||||
|
runs-on: zoomzilla-production
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -45,8 +47,8 @@ jobs:
|
|||||||
REMOTE_DIR: ${{ matrix.dir }}
|
REMOTE_DIR: ${{ matrix.dir }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools (Alpine)
|
- name: Install tools
|
||||||
run: apk add --no-cache git curl php83-cli
|
run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates git curl php-cli
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -67,8 +69,7 @@ jobs:
|
|||||||
curl -sS --ssl-reqd --netrc-file "$netrc" --fail --retry 3 \
|
curl -sS --ssl-reqd --netrc-file "$netrc" --fail --retry 3 \
|
||||||
"ftp://$FTP_HOST/${dir:+$dir/}config.json" -o "$config"
|
"ftp://$FTP_HOST/${dir:+$dir/}config.json" -o "$config"
|
||||||
changed=0
|
changed=0
|
||||||
# Alpine package php83-cli предоставляет бинарник php83, не php.
|
php bin/ensure-focus-config.php "$config" || changed=$?
|
||||||
php83 bin/ensure-focus-config.php "$config" || changed=$?
|
|
||||||
case "$changed" in
|
case "$changed" in
|
||||||
0) ;;
|
0) ;;
|
||||||
10) curl -sS --ssl-reqd --netrc-file "$netrc" --ftp-create-dirs --retry 3 --fail \
|
10) curl -sS --ssl-reqd --netrc-file "$netrc" --ftp-create-dirs --retry 3 --fail \
|
||||||
|
|||||||
Reference in new issue
Block a user