Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70e8287fca | ||
|
|
c50c75cebb | ||
|
|
62602a9843 |
No files matched your search
@@ -66,11 +66,32 @@ jobs:
|
||||
GT_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
COMMIT_HASH: ${{ github.sha }}
|
||||
|
||||
# Packagist shows every branch of the repository it reads as a dev version (dev-develop, dev-feature/...), and
|
||||
# that cannot be switched off. So it reads a mirror that only has the tags: this puts them there.
|
||||
mirror:
|
||||
runs-on: docker
|
||||
needs: tag
|
||||
container:
|
||||
image: webdevops/php:8.4
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: push the tags
|
||||
run: |
|
||||
git config --global --add safe.directory "$(pwd)"
|
||||
git config --local --unset-all http.https://git.iriks.casa/.extraheader || true
|
||||
git -c http.extraheader="Authorization: token ${GT_TOKEN}" push https://git.iriks.casa/iriks-it/laravel-manager-packagist.git 'refs/tags/v*:refs/tags/v*'
|
||||
env:
|
||||
GT_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
|
||||
# Needs the secrets PACKAGIST_USERNAME and PACKAGIST_TOKEN on the repository, and the package
|
||||
# submitted on packagist.org once. Without them this step only says so.
|
||||
packagist:
|
||||
runs-on: docker
|
||||
needs: tag
|
||||
needs: [tag, mirror]
|
||||
container:
|
||||
image: webdevops/php:8.4
|
||||
steps:
|
||||
@@ -82,7 +103,7 @@ jobs:
|
||||
env:
|
||||
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
|
||||
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
|
||||
PACKAGE_URL: https://git.iriks.casa/iriks-it/laravel-manager
|
||||
PACKAGE_URL: https://git.iriks.casa/iriks-it/laravel-manager-packagist
|
||||
|
||||
# Last: merge what was released into develop. Runs even when Packagist could not be told.
|
||||
sync-develop:
|
||||
|
||||
@@ -4,6 +4,11 @@ Every release has a section here, named after its version (for example `v0.1.0 -
|
||||
heading). The release pull request to `production` is stopped by PR CI when its section is missing, and the text of
|
||||
the section is the text of the release in Gitea.
|
||||
|
||||
## v0.5.1 - 2026-12-04
|
||||
|
||||
- Packagist shows only the releases: the Release workflow pushes the tags to a mirror (`iriks-it/laravel-manager-packagist`) that has only a `production` branch with a note (no `composer.json`, so no version),
|
||||
and Packagist reads that, so the `dev-…` versions of every branch are gone.
|
||||
|
||||
## v0.5.0 - 2026-12-04
|
||||
|
||||
- Names that can move: `route_name` for the route-name prefix, `tables` for a table of its own per short name (on top of `table_prefix`),
|
||||
|
||||
@@ -261,7 +261,7 @@ Nobody opens a pull request to `develop`, and `production` and the release branc
|
||||
| When | What runs |
|
||||
|---|---|
|
||||
| Pull request to a release branch or to production | *flow* (right branches, version above the latest tag, changelog section, tests of these scripts), *ledger* (`TOKENS.md`), *test* (Pint, Pest with the newest and the oldest dependencies, `composer validate`), *security* (`composer audit`: the job fails on any advisory). The check `PR CI / pr-ci` is green when all are. |
|
||||
| Push to production | verify (Pest, `composer audit`), tag and release, Packagist, sync develop; then the homelab scans production with Trivy |
|
||||
| Push to production | verify (Pest, `composer audit`), tag and release, the tags to the mirror `laravel-manager-packagist`, Packagist, sync develop; then the homelab scans production with Trivy |
|
||||
| Every night | the homelab scans every repository with Trivy (03:00) and updates its dependencies (04:00): nothing runs weekly in this repository |
|
||||
| Every night | *Prune branches*: removes `feature/*` and `fix/*` branches whose last commit is over 30 days old and that have no open pull request (a branch of a pull request can be restored from it in Gitea) |
|
||||
|
||||
@@ -277,6 +277,10 @@ Nothing here runs on a weekly schedule; the checks hang on the moments that matt
|
||||
merged the Release workflow makes a patch release of it (v0.5.0 → v0.5.1, text from the pull request), tells Packagist and syncs `develop`:
|
||||
one a night at most. While a release branch is open there is no patch release; the update goes out with that release. A critical advisory on the installed version skips the 48 hours.
|
||||
|
||||
Packagist reads the mirror `iriks-it/laravel-manager-packagist`, not this repository: it holds only the tags `vX.Y.Z` (the
|
||||
Release workflow pushes them), because Packagist shows every branch of the repository it reads as a `dev-…` version. The
|
||||
package page on Packagist points at the mirror; the one branch there (`production`) only holds a note and has no `composer.json`, so Packagist makes no version of it.
|
||||
|
||||
Secrets of the repository for this: `DEPLOY_TOKEN` (the organisation has it), and `PACKAGIST_USERNAME` and
|
||||
`PACKAGIST_TOKEN` (until they are set that step only says so). When Packagist does not know the package yet, that step
|
||||
submits it through the create-package API; after that it only tells Packagist about each new tag.
|
||||
|
||||
@@ -47,3 +47,5 @@ Per stuk werk een rij; zie `dev/token-usage.py`.
|
||||
| 2026-12-04 | Trivy uit de PR-jobs (schijf van de runners vol), opruimen en wekelijkse prune | - | claude-sonnet-5-5 | 20 | 9.723 | 44 | 94.863 | 1.460.150 | 0,15 |
|
||||
| 2026-12-04 | Niets meer wekelijks: nachtelijke scan en updates, Trivy na een release, docs | - | claude-sonnet-5-5 | 27 | 19.377 | 58 | 41.226 | 2.879.048 | 0,63 |
|
||||
| 2026-12-04 | Patch-release voor de nachtelijke renovate-update | - | claude-sonnet-5-5 | 24 | 17.609 | 54 | 35.165 | 3.038.359 | 0,16 |
|
||||
| 2026-12-04 | Packagist leest een spiegel met alleen tags | - | claude-sonnet-5-5 | 51 | 31.329 | 126 | 55.366 | 7.158.212 | 0,31 |
|
||||
| 2026-12-04 | Spiegelrepo voor Packagist gevuld en de tekst erover rechtgezet | - | claude-sonnet-5-5 | 44 | 19.908 | 126 | 27.524 | 7.248.418 | 0,18 |
|
||||
Reference in new issue
Block a user