ci: update build-publish workflow for multi-branch and tag support #8

Merged
daniel merged 1 commits from ci/update-workflow into main 2026-04-09 23:10:41 +00:00

1 Commits

Author SHA1 Message Date
Lennie S.
97abc74297 ci: fix if-expression syntax and restructure into separate jobs
All checks were successful
Build and Publish Docker Image / build-only (push) Successful in 3m23s
Build and Publish Docker Image / build-and-push-main (push) Has been skipped
Build and Publish Docker Image / build-and-push-tag (push) Has been skipped
Build and Publish Docker Image / build-only (pull_request) Successful in 2m7s
Build and Publish Docker Image / build-and-push-main (pull_request) Has been skipped
Build and Publish Docker Image / build-and-push-tag (pull_request) Has been skipped
- Replace complex single-job conditional steps with 3 separate jobs:
  build-only, build-and-push-main, build-and-push-tag
- Use Gitea Actions-compatible startsWith() function instead of
  .startsWith() method call
- Remove nested parentheses that Gitea Actions cannot parse
- Push only on refs/heads/main and refs/tags/v* (not all branches)
2026-04-09 23:05:25 +00:00