Add release script targeting code.andydayton.com registry #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "deploy"
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?
Summary
Replaces the Docker Hub workflow with a tagged-release workflow that pushes to the self-hosted registry at
code.andydayton.com.sh/release.shorchestrates the full release: validatesvX.Y.Z, checks the docker daemon, refuses dirty trees and existing tags, creates an annotated git tag, builds the image ascode.andydayton.com/andy/tenderbuttons:vX.Y.Z(also tagged:latest), pushes both image tags, then pushes the git tag toorigin.Makefile: addedIMAGEvar, retargeteddocker-build/docker-runat the new registry tagged:dev, removeddocker-push, addedmake release VERSION=vX.Y.Z.README.md: added a## Releasingsection documenting the new flow and thedocker login code.andydayton.comprerequisite.Versioning starts at
v1.0.0.Test plan
./sh/release.sh(no arg) prints usage and exits non-zero./sh/release.sh 1.0.0(missingv) rejects./sh/release.sh v1.0andv1.0.0.0rejectdocker login code.andydayton.comthenmake release VERSION=v1.0.0produces and pushes:v1.0.0+:latestimages and the git tagmake docker-build && make docker-runstill works for local dev (image tagged:dev)Release scriptto Add release script targeting code.andydayton.com registry