Files
AudioManager/.gitea/workflows/ci.yaml
T
TapTap 60e8dadce6
CI / test (push) Successful in 1m36s
CI / chart (push) Successful in 3s
ci: keep tests in CI and move image pushes to a local release script
The Gitea registry rejects kaniko pushes from job containers with
401 reqPackageAccess even though the same credentials work from a normal
machine, so the image job could never go green.

Drop the image job; CI now only runs unit tests, the smoke test and the
Helm chart lint. Add scripts/release.sh, which builds and pushes the
image from a trusted machine and can optionally apply the users secret
and run helm upgrade.
2026-11-13 14:28:48 +00:00

39 lines
912 B
YAML

name: CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
pull_request:
env:
# Built by scripts/build-ci-image.sh from ci/Dockerfile. Bump the tag when
# ci/Dockerfile changes.
CI_IMAGE: gitea.tap-tap.win/taptap/audiomanager-ci:2
jobs:
test:
runs-on: ubuntu-latest
container:
image: gitea.tap-tap.win/taptap/audiomanager-ci:2
steps:
- uses: actions/checkout@v4
- name: Test
run: gradle test --console=plain
- name: Smoke test
run: GRADLE=gradle ./scripts/smoke.sh
chart:
runs-on: ubuntu-latest
container:
image: gitea.tap-tap.win/taptap/audiomanager-ci:2
steps:
- uses: actions/checkout@v4
- name: Lint and render the chart
run: |
helm lint charts/musicmanager
helm template musicmanager charts/musicmanager --set users.existingSecret=test > /dev/null