Interview Prep/CI/CD/Rapid-Fire Commands

Rapid-fire: Docker commands used in CI for build, tag, push and cleanup.

BeginnerProductionRapid-Fire Commands
Answer
docker build -t shop/api:$GIT_SHA .
docker tag shop/api:$GIT_SHA registry.example.com/shop/api:$GIT_SHA
echo "$TOKEN" | docker login registry.example.com -u ci --password-stdin
docker push registry.example.com/shop/api:$GIT_SHA
docker system prune -af --filter "until=72h"
All CI/CD questions

More on Rapid-Fire Commands