CI and Deployment Helpers
Artifact Version
Name a Build
Build helpers create repeatable artifact names from a project name and build number so later steps can upload the exact file.
Program
Play the script to choose the build number and see the artifact name.
artifact_version_name.sh
#!/usr/bin/env bash
build_num=
app="web"
artifact="$app-$build_num.tar.gz"
checksum="sha256:$build_num"
echo "$artifact $checksum"
#!/usr/bin/env bash
build_num=
app="web"
artifact="$app-$build_num.tar.gz"
checksum="sha256:$build_num"
echo "$artifact $checksum"
artifact
An artifact is the file produced by a build for later deployment.
version
A build number gives the artifact a repeatable version identifier.
checksum
A checksum string records which artifact later steps should verify.