feat(ci): aggiungi varianti -github dei reusable e fix audit Python
- crea gemelli X-github.yml per ogni reusable con action da github.com (fallback mirror gitea.com) - python-dependency-check/outdated: audit in venv isolata (fix falsi positivi da runner ML) - python-dependency-check/outdated: deduplica issue (commento invece di nuova issue) - examples: aggiungi ci-github.yml e release-github.yml in tutte le cartelle Fixes #3 @3h
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Copia in: .gitea/workflows/ci.yml
|
||||
# Trigger: push su qualsiasi branch → quality gates + build debug Android
|
||||
#
|
||||
# Il debug APK viene uplodato come artifact scaricabile dalla PR.
|
||||
# Non richiede firma: usato per test interni su device fisico o emulatore.
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
quality-gates:
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/quality-gates-github.yml@v1
|
||||
secrets: inherit
|
||||
|
||||
android-debug:
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/capacitor-android-github.yml@v1
|
||||
secrets: inherit
|
||||
with:
|
||||
build-type: debug
|
||||
output-format: apk
|
||||
@@ -0,0 +1,49 @@
|
||||
# Copia in: .gitea/workflows/release.yml
|
||||
# Trigger: git tag v* → APK firmato + AAB Play Store + release Gitea
|
||||
#
|
||||
# Secrets richiesti nel repository consumer:
|
||||
# KEYSTORE_BASE64 — keystore codificato in base64
|
||||
# KEYSTORE_PASSWORD — password del keystore
|
||||
# KEY_ALIAS — alias della chiave
|
||||
# KEY_PASSWORD — password della chiave
|
||||
# GOOGLE_SERVICES_JSON — contenuto del file google-services.json (se Firebase)
|
||||
#
|
||||
# Prerequisito build.gradle (android/app/build.gradle):
|
||||
# signingConfigs {
|
||||
# release {
|
||||
# storeFile file("keystore.jks")
|
||||
# storePassword System.getenv("KEYSTORE_PASSWORD")
|
||||
# keyAlias System.getenv("KEY_ALIAS")
|
||||
# keyPassword System.getenv("KEY_PASSWORD")
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# NOTA: gitea-release attende entrambe le build Android via needs.
|
||||
# Workaround Gitea bug #31900: token esplicito nel checkout di auto-release.yml.
|
||||
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
android-apk:
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/capacitor-android-github.yml@v1
|
||||
secrets: inherit
|
||||
with:
|
||||
build-type: release
|
||||
output-format: apk
|
||||
|
||||
android-aab:
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/capacitor-android-github.yml@v1
|
||||
secrets: inherit
|
||||
with:
|
||||
build-type: release
|
||||
output-format: aab
|
||||
|
||||
gitea-release:
|
||||
needs: [android-apk, android-aab]
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/auto-release-github.yml@v1
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user