fix: remover actions/cache no Gitea Actions
Job containers nao alcancam o cache do act_runner (ETIMEDOUT ~5m). Tira cache steps e Buildx type=gha. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,12 +40,6 @@ jobs:
|
|||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache/files
|
|
||||||
key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: composer-${{ runner.os }}-
|
|
||||||
|
|
||||||
- run: composer validate --strict
|
- run: composer validate --strict
|
||||||
- run: composer install --no-interaction --prefer-dist
|
- run: composer install --no-interaction --prefer-dist
|
||||||
- run: composer pint:check
|
- run: composer pint:check
|
||||||
@@ -91,18 +85,6 @@ jobs:
|
|||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache/files
|
|
||||||
key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: composer-${{ runner.os }}-
|
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: npm-${{ runner.os }}-
|
|
||||||
|
|
||||||
- run: composer install --no-interaction --prefer-dist
|
- run: composer install --no-interaction --prefer-dist
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
@@ -143,18 +125,6 @@ jobs:
|
|||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache/files
|
|
||||||
key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: composer-${{ runner.os }}-
|
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: npm-${{ runner.os }}-
|
|
||||||
|
|
||||||
- run: composer install --no-interaction --prefer-dist
|
- run: composer install --no-interaction --prefer-dist
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
@@ -188,18 +158,6 @@ jobs:
|
|||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, intl, sodium, gd
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache/files
|
|
||||||
key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: composer-${{ runner.os }}-
|
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: npm-${{ runner.os }}-
|
|
||||||
|
|
||||||
- run: composer install --no-interaction --prefer-dist
|
- run: composer install --no-interaction --prefer-dist
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|||||||
@@ -63,8 +63,6 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.sha }}
|
${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.sha }}
|
||||||
${{ steps.meta.outputs.image }}:staging
|
${{ steps.meta.outputs.image }}:staging
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|
||||||
- name: Deploy staging on Dokploy
|
- name: Deploy staging on Dokploy
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -146,6 +146,8 @@ The automatic `GITEA_TOKEN` runs workflows but **cannot push OCI packages** ([gi
|
|||||||
|
|
||||||
Workflows live in [`.gitea/workflows/`](../../.gitea/workflows/).
|
Workflows live in [`.gitea/workflows/`](../../.gitea/workflows/).
|
||||||
|
|
||||||
|
`actions/cache` and Docker Buildx `type=gha` are **not** used: the act_runner cache server is not reachable from job containers by default (`getCacheEntry` ETIMEDOUT). Re-enable only after configuring a reachable `cache.host`/`external_server` on the runner.
|
||||||
|
|
||||||
### Staging (automatic)
|
### Staging (automatic)
|
||||||
|
|
||||||
[`.gitea/workflows/deploy-staging.yml`](../../.gitea/workflows/deploy-staging.yml)
|
[`.gitea/workflows/deploy-staging.yml`](../../.gitea/workflows/deploy-staging.yml)
|
||||||
|
|||||||
Reference in New Issue
Block a user