⚡ perf(ci): le action arrivano dai mirror interni, non da gitea.com
- tutti gli uses: puntano a gitea.pzetatouch.it/actions/*, pull mirror che risincronizzano dall'upstream e seguono i tag flottanti - gitea.com ci serviva a ~32 KB/s: un clone a freddo di setup-node ha tenuto fermo il runner 26 minuti con 28 run in coda - dalla rete interna lo stesso clone a freddo costa 3 s (~12,8 MB/s) - sparisce anche l'incoerenza per cui actions/cache era preso da github.com in tutte e 23 le occorrenze, varianti gitea comprese Fixes #26 @2h
This commit is contained in:
1 parent
2d5eb0da4b
commit
a11fe2af2b
28 files changed
+93
-93
No files matched your search
@@ -16,7 +16,7 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ gitea.token }}
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ gitea.token }}
|
||||
|
||||
@@ -43,10 +43,10 @@ jobs:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -54,16 +54,16 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Setup Java
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: ${{ inputs.java-version || '17' }}
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-android@v4
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
@@ -240,7 +240,7 @@ jobs:
|
||||
|
||||
- name: Upload APK artifact
|
||||
if: inputs.output-format == 'apk'
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-${{ inputs.build-type }}-apk
|
||||
path: android/app/build/outputs/apk/${{ inputs.build-type }}/${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-${{ inputs.build-type }}.apk
|
||||
@@ -248,7 +248,7 @@ jobs:
|
||||
|
||||
- name: Upload AAB artifact
|
||||
if: inputs.output-format == 'aab'
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-release-aab
|
||||
path: android/app/build/outputs/bundle/release/${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-release.aab
|
||||
@@ -256,7 +256,7 @@ jobs:
|
||||
|
||||
- name: Upload Gradle build reports
|
||||
if: always()
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: gradle-build-reports
|
||||
path: android/build/reports/
|
||||
|
||||
@@ -43,10 +43,10 @@ jobs:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -54,16 +54,16 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Setup Java
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: ${{ inputs.java-version || '17' }}
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-android@v4
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
@@ -240,7 +240,7 @@ jobs:
|
||||
|
||||
- name: Upload APK artifact
|
||||
if: inputs.output-format == 'apk'
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-${{ inputs.build-type }}-apk
|
||||
path: android/app/build/outputs/apk/${{ inputs.build-type }}/${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-${{ inputs.build-type }}.apk
|
||||
@@ -248,7 +248,7 @@ jobs:
|
||||
|
||||
- name: Upload AAB artifact
|
||||
if: inputs.output-format == 'aab'
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-release-aab
|
||||
path: android/app/build/outputs/bundle/release/${{ steps.app-info.outputs.name }}-${{ steps.app-info.outputs.version }}-release.aab
|
||||
@@ -256,7 +256,7 @@ jobs:
|
||||
|
||||
- name: Upload Gradle build reports
|
||||
if: always()
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v3
|
||||
with:
|
||||
name: gradle-build-reports
|
||||
path: android/build/reports/
|
||||
|
||||
@@ -20,10 +20,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -20,10 +20,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -20,10 +20,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -20,10 +20,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -18,10 +18,10 @@ jobs:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
run: npm run test
|
||||
|
||||
- name: Login to container registry
|
||||
uses: https://github.com/docker/login-action@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
username: ${{ secrets.G_USER }}
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
|
||||
@@ -18,10 +18,10 @@ jobs:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
run: npm run test
|
||||
|
||||
- name: Login to container registry
|
||||
uses: https://gitea.com/docker/login-action@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
username: ${{ secrets.G_USER }}
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://gitea.com/docker/build-push-action@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
|
||||
@@ -37,10 +37,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# Nessun package-lock da installare: la cache npm qui non ha niente da
|
||||
|
||||
@@ -37,10 +37,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# Nessun package-lock da installare: la cache npm qui non ha niente da
|
||||
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Generate K8s YAML
|
||||
uses: punga78/k8s-yaml-generator@${{ inputs.generator-version || 'v0.13' }}
|
||||
@@ -124,7 +124,7 @@ jobs:
|
||||
# Resta alla v5 dei chiamanti: la v7 esiste, ma passare dalla v5 alla v7
|
||||
# qui significherebbe far viaggiare un aggiornamento non verificato
|
||||
# insieme al consolidamento. Si alza a parte, con una run di prova.
|
||||
uses: https://gitea.com/actions/upload-artifact@v5
|
||||
uses: https://gitea.pzetatouch.it/actions/upload-artifact@v5
|
||||
with:
|
||||
name: ${{ inputs.artifact-name || 'K8s_Yaml' }}
|
||||
path: ${{ inputs.directory-path || 'k8s' }}/
|
||||
@@ -19,10 +19,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -19,10 +19,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ gitea.token }}
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ gitea.token }}
|
||||
|
||||
@@ -22,15 +22,15 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -31,10 +31,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -22,15 +22,15 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -31,10 +31,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -30,15 +30,15 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
run: pytest --tb=short -q
|
||||
|
||||
- name: Login to container registry
|
||||
uses: https://github.com/docker/login-action@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
username: ${{ secrets.G_USER }}
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: ${{ inputs.working-directory }}
|
||||
|
||||
@@ -39,10 +39,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
@@ -120,7 +120,7 @@ jobs:
|
||||
run: pytest --tb=short -q
|
||||
|
||||
- name: Login to container registry
|
||||
uses: https://gitea.com/docker/login-action@v4
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
username: ${{ secrets.G_USER }}
|
||||
@@ -155,7 +155,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://gitea.com/docker/build-push-action@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: ${{ inputs.working-directory }}
|
||||
|
||||
@@ -52,10 +52,10 @@ jobs:
|
||||
PACKAGES_API_URL: https://gitea.pzetatouch.it/api/v1/packages/PZeta_Touch/pypi
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -125,7 +125,7 @@ jobs:
|
||||
esac
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -23,15 +23,15 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -32,10 +32,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
uses: https://github.com/actions/setup-python@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
|
||||
|
||||
@@ -32,10 +32,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -39,10 +39,10 @@ jobs:
|
||||
working-directory: ${{ inputs.working-directory || '.' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://gitea.com/actions/setup-node@v7
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v6
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
Reference in new issue
Block a user