Skip to content

Commit 3349fbe

Browse files
committed
Add release script
1 parent f7d7308 commit 3349fbe

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/release.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -euxo pipefail
4+
5+
version="${1}"
6+
7+
echo "Releasing version ${version}..."
8+
9+
script_path=$(realpath "$0")
10+
script_dir=$(dirname "${script_path}")
11+
build_dir="$(realpath "${script_dir}/..")"
12+
readonly build_dir
13+
unset script_path script_dir
14+
15+
docker build "${build_dir}" --pull --push \
16+
--tag "ghcr.io/felipecrs/dond-shim-bin:${version}"
17+
docker build "${build_dir}" --pull --push \
18+
--target dond-shim-bin --tag "ghcr.io/felipecrs/dond-shim-bin:${version}"
19+
20+
git_sha=$(git rev-parse HEAD)
21+
gh release create "v${version}" --title "v${version}" --target "${git_sha}"

0 commit comments

Comments
 (0)