"What changed?" is the first question in most incidents. A deployment record answers it without relying on anyone's memory.
What to record
For each deployment, note:
- the time, with its time zone (UTC is easiest)
- the environment
- the version and image digest or artifact checksum
- the source commit
- who or what started it
- the result: success, failure or rolled back
Record failures and rollbacks too. A history with only successes misleads you.
Identify the exact thing
A version name can be reused by mistake, so add a checksum for file artifacts:
sha256sum shop-1.4.0.tar.gz > shop-1.4.0.tar.gz.sha256
sha256sum -c shop-1.4.0.tar.gz.sha256shop-1.4.0.tar.gz: OKA matching checksum shows the file's contents are the same as when the checksum was made. It does not show who made the file.
A simple log
Even a script appending one line is far better than nothing:
printf '%s env=%s version=%s commit=%s by=%s result=%s\n' \
"$(date -u +%Y-%m-%dT%H:%M:%SZ)" staging 1.4.0 \
"$(git rev-parse --short HEAD)" "$USER" success >> deployments.log
tail -n 1 deployments.log2026-03-04T10:15:00Z env=staging version=1.4.0 commit=3f9a1c2 by=sam result=successRun it inside a Git repository. Have the deploy script write the record itself, because manual notes get forgotten. Larger teams use the history kept by their CI or deployment tool. Check how long that history is retained.
Never put passwords or tokens in a record.
Link back to the source
An annotated Git tag marks the released commit:
git tag -a v1.4.0 -m "Release 1.4.0"
git push origin v1.4.0
git log --oneline v1.3.0..v1.4.0The last command lists commits reachable from v1.4.0 but not from v1.3.0, a quick view of what the release changed. It assumes both tags exist.
Try it
Add the log line to a small script that takes the environment and version as arguments. Run it three times with different values, then find the staging entries with grep 'env=staging' deployments.log. The streams and text lab is good practice for searching and filtering logs.
Check your understanding
Deployment Records
All 4 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.