ci-cd

  • The CI box gets its own deploy key, and it is read-only

    Giving CI a copy of a developer’s key, or an account with write access, means a compromised build server can push to the repository — and a build…

  • Certificates that renew themselves

    Free certificates went GA this month. Automating issuance and renewal, the rate limits that catch staging first, and the monitoring that has to outlive the automation.

  • Two images instead of the multi-stage build you cannot have yet

    Building assets inside the runtime image drags Node, the whole node_modules tree and a compiler toolchain into production — several hundred megabytes to produce one bundle. There is…

  • A smoke test is not an integration test

    Both hit a running system, so they get put in the same suite and run at the same time. They answer different questions and should fail at different…

  • A first serious attempt at Docker for local development

    Two days lost to PHP extension mismatches. A container per service, what the shared-folder performance problem costs on a VM, and whether it was worth it.

  • Composer scripts are a task runner you already have

    Projects accumulate a README section listing the commands nobody remembers: the linter with its config path, the test suite with its flags, the cache clear that has to…

  • A Travis matrix catches the version you do not run locally

    A library that claims 5.3 compatibility is tested against whatever the author has installed, which is one version. The failures that reach users are the ones that version…

  • Replacing 30 script tags with a Grunt build

    Thirty-one requests before the page could do anything, most of them under 2 KB. Concatenation in a declared order, source maps, and cache busting that proxies respect.

  • A Gruntfile that fails the build on a lint error

    grunt jshint prints its warnings, the build goes green, and the lint errors accumulate — the worst of both worlds, because the check runs and nobody reads it.…