We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d7308 commit 3349fbeCopy full SHA for 3349fbe
scripts/release.sh
@@ -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
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