Standardize workflows to htpasswd pattern #12
Reference in New Issue
Block a user
Delete Branch "fix/workflow-standard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Transforms all 4 Gitea Actions workflow files to match the standard pattern from perso/htpasswd.
Changes
main.yaml —
pushtomasterMain Releasehadolint→test→build(no push) →taghadolint: usesdockerfile: Dockerfileparam, continues on errortest: buildsci-imagewith buildx setup, runs testsbuild: buildsjcabillot/docker-dynhost:${{ github.sha }}without pushingtag: checkout withfetch-depth: 0, configures git auth withSA_TOKEN_ACTION_PUSH_TAGS, semver tag viaanothrNick/github-tag-actioncron.yaml — Nightly rebuild
0 0 * * *hadolint→test→build-pushbuild-push: gets latest semver tag, metadata produces$TAG-latestonly (no:latest)DOCKERHUB_USERNAME/DOCKERHUB_TOKENsecretstag.yaml — Tag release
hadolint→test→build-pushbuild-push: metadata producestype=ref,event=tag+type=ref,event=tag,suffix=-latestpull: trueon build-push for cachepr.yaml — PR checks
pull_request: branches: [master]hadolint(nocontinue-on-error) →build-testhadolint: usesdockerfile: Dockerfileparambuild-test: buildsci-image, runs testsWhy
Aligns docker-dynhost with the standardized Gitea Actions workflow pattern used across the perso org (htpasswd, offlineimap, etc.). Removes the named-steps style in favor of the leaner
# vXcomment pattern and consistent pipeline structure.Transform all 4 workflow files to match the standard pattern used by perso/htpasswd (and offlineimap): main.yaml: - Rename to 'Main Release' - hadolint (continue-on-error, dockerfile param) → test (build ci-image, run tests) → build (no push, just build target image) → tag (fetch-depth 0, git auth with SA_TOKEN_ACTION_PUSH_TAGS, semver tagging) cron.yaml: - Keep original schedule '0 0 * * *' - hadolint → test → build-push (get-latest-tag, metadata with -latest only, no :latest tag) tag.yaml: - hadolint → test → build-push (type=ref,event=tag + suffix=-latest) pr.yaml: - hadolint (no continue-on-error, add dockerfile param) → build-test - Scope to pull_request branches: [master] - Use ci-image pattern with buildx setup