-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sh
executable file
·35 lines (26 loc) · 1008 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
# This is intended to be run from the root directory. `release/build.sh`
set -e
GIT_ROOT=`git rev-parse --show-toplevel`
cd $GIT_ROOT # We need to start from repository root
#####################################################
# Generating Artifacts opensearch-cli #
# #
#####################################################
echo 'setting cli version'
export VERSION="1.2.0"
echo 'Generating artifacts'
goreleaser --snapshot --skip-publish --clean
# goreleaser generates folder and binary too. Remove unwanted files to keep only
# relevant files inside dist folder
rm -rf dist/opensearch-cli_*
rm -rf dist/config.yaml
ls -l dist/