Fix CI: produce one Docker image tag per release, run tests and build validation on PRs#60
Conversation
…yment Co-authored-by: zgypa <5678168+zgypa@users.noreply.github.com>
zgypa
left a comment
There was a problem hiding this comment.
@copilot i think having tests run for each PR generation is OK, as long as its not for each push and it doesn't generate assets. Should only run the django test suites and build, then discard assets. That would ensure that no reviews and requested on something that doesn't even build.
…dispatch Co-authored-by: zgypa <5678168+zgypa@users.noreply.github.com>
Done in 12c0fd7. |
docker/metadata-action@v5defaults generate 3 tags per semver release ({{version}},{{major}}.{{minor}}, andref), creating 3 separate registry assets. Tests were also running on every branch push when they should run on PRs and before deployment only.Changes
publish-ghcr.ymltestjob (Nix + Django tests) as a required predecessor tobuild-and-pushvianeeds: [test]1.2.3from tagv1.2.3— nomajor.minororrefvariantstest.ymlpull_requestevents (opened, synchronize, reopened, ready_for_review) andworkflow_dispatchfor manual runs — not on every branch pushbuildjob that runsdocker/build-push-actionwithpush: falseto validate the Dockerfile builds cleanly on every PR without storing any image assetOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.