So glad you got to see my talk and even MOAR that you actually wrote down the gist url / scanned the QR!
More gems are available at my dotfiles repo.
Here's the main gist:
git checkout -b my-amazong-feature
# work work work
git fetch origin main:main # change main to master if that's your origin branch
git rebase main --interactive # Squash anything that can be in one logical commit
git push --force-with-lease
# all is ready, it's shipping time!
git checkout main # or your origin branch
git merge --ff-only - # - is the previous branch
git push
# victory coffee!!1
This workflow allows you to remove repeating steps in your CI flow!
Did you download dependencies? Elevate your CI platform capability to cache those!
Did you build an artifact? Save that somewhere with the commit sha as a part of the naming convention!
Did you build a docker image? AMAZONG, tag it with the commit sha!
When creating your artifacts, wether files or docker images, try to make it possible to inject all runtime configurations at, ahem runtime!
Want to deploy that docker image? just use the git commit sha! it's the same! Tag it with something that'll allow you to identify the deploy as well!