Basic Go http web server running on port 8080 used to illustrate GitHub Actions as Continuous Deployment pipeline.
github-actions-buildOCI.yml creates an Image base on busybox:glibc using Dockerfile.
This is triggered by creating a tag that looks like the semantic tag that starts with "v" (e.g. vX.Y.Z)
newtag=v1.0.1; git tag $newtag && git push origin $newtag
The image is published at these locations:
github-actions-release.yml creates a statically compiled GoLang binary along with Release Notes consisting of the recent git commit messages.
This is triggered by creating a tag that looks like the semantic tag that starst with "r" (e.g. rX.Y.Z)
newtag=r1.0.1; git tag $newtag && git push origin $newtag
newtag=v1.0.1
git commit -a -m "changes for new tag $newtag" && git push
git tag $newtag && git push origin $newtag
# delete local tag, then remote
todel=v1.0.1
git tag -d $todel && git push origin :refs/tags/$todel
todel=r1.0.1
# delete release and remote tag
gh release delete $todel --cleanup-tag -y
# delete local tag
git tag -d $todel