CI: job'ы на arm64-раннере (ubuntu-latest-arm64), сборка прод-образов на amd64
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
java:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
PY
|
||||
|
||||
web:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
@@ -129,8 +129,13 @@ jobs:
|
||||
working-directory: wordpdf-web
|
||||
run: npm run lint
|
||||
|
||||
# Образы собираются только под amd64: прод-хост x86_64, а
|
||||
# eclipse-temurin:17-jre-alpine не имеет arm64-варианта. Метку
|
||||
# ubuntu-latest-amd64 объявляет только x86_64-раннер llm.
|
||||
# Остальные job'ы идут на ubuntu-latest-arm64 — единственную метку,
|
||||
# которую объявляет arm64-раннер rpi-arm64.
|
||||
images-app:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-amd64
|
||||
needs: java
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -172,7 +177,7 @@ jobs:
|
||||
docker push "$REGISTRY/wordpdf-app:sha-$sha"
|
||||
|
||||
images-web:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-amd64
|
||||
needs: web
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -212,7 +217,7 @@ jobs:
|
||||
docker push "$REGISTRY/wordpdf-web:sha-$sha"
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
needs: [images-app, images-web]
|
||||
env:
|
||||
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
|
||||
@@ -426,7 +431,7 @@ jobs:
|
||||
} | ssh "$@" "$H" bash -s
|
||||
|
||||
autotests:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
needs: deploy
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -468,7 +473,7 @@ jobs:
|
||||
run: cd prod-autotests && ../.venv/bin/python -m pytest -q .
|
||||
|
||||
rollback:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
needs: [deploy, autotests]
|
||||
if: failure()
|
||||
env:
|
||||
|
||||
@@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
java:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
PY
|
||||
|
||||
web:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user