Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Oct 16, 2024
1 parent f7d7308 commit 3349fbe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -euxo pipefail

version="${1}"

echo "Releasing version ${version}..."

script_path=$(realpath "$0")
script_dir=$(dirname "${script_path}")
build_dir="$(realpath "${script_dir}/..")"
readonly build_dir
unset script_path script_dir

docker build "${build_dir}" --pull --push \
--tag "ghcr.io/felipecrs/dond-shim-bin:${version}"
docker build "${build_dir}" --pull --push \
--target dond-shim-bin --tag "ghcr.io/felipecrs/dond-shim-bin:${version}"

git_sha=$(git rev-parse HEAD)
gh release create "v${version}" --title "v${version}" --target "${git_sha}"

0 comments on commit 3349fbe

Please sign in to comment.