CI: standardize workflows - tests mandatory, remove :latest push on master #10
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?
Standardize CI workflows
This PR standardizes the Gitea Actions workflows for
web/phpapacheto match the proven htpasswd pattern.Changes:
main.yaml (push to master):
build-pushjob that pushed:latestto Docker Hub on every master pushtestjob as a mandatory step before build and tagbuildjob that just builds the image locally (no push)tagjob now depends onbuildpassingGITHUB_TOKENto org-levelSA_TOKEN_ACTION_PUSH_TAGSsecretscm.cabillot.eu/web/phpapache.gitcron.yaml (nightly rebuild):
testjob beforebuild-pushbuild-pushnowneeds: [test]:latesttag push; only push{latest-tag}-latest'0 0 * * *'tag.yaml (tag release):
testjob beforebuild-pushbuild-pushnowneeds: [test]type=ref,event=tag,suffix=-latestmeta tag alongside the plain tag referenceRationale:
:latestpush on every master commit — that created unnecessary churn without a tag{tag}and{tag}-latestfor clear versioned images