-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev artifacts] Create releases for development artifacts. (#1553)
Summary: We need to store our development artifacts somewhere other than gcs. This PR creates releases on the `pixie-io/dev-artifacts` repo, storing the artifacts in these releases. This prevents having random releases on the main repo, but still gives us a stable location for the dev artifacts. Type of change: /kind cleanup Test Plan: Ran `bazel clean --expunge && bazel build //...`. Also relying existing tests. Signed-off-by: James Bartlett <[email protected]>
- Loading branch information
1 parent
d9c977b
commit 898e27f
Showing
8 changed files
with
161 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash -e | ||
|
||
# Copyright 2018- The Pixie Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
repo="pixie-io/dev-artifacts" | ||
|
||
if [[ $# -lt 3 ]]; then | ||
echo "Usage: $0 <release-name> <version> [<artifact>...]" | ||
exit 1 | ||
fi | ||
|
||
release_name="$1" | ||
version="$2" | ||
artifacts=( "${@:3}" ) | ||
|
||
tag_name="${release_name}/${version}" | ||
|
||
repo_dir="$(mktemp -d)" | ||
git clone [email protected]:pixie-io/dev-artifacts.git "${repo_dir}" | ||
|
||
pushd "${repo_dir}" &> /dev/null | ||
git tag "${tag_name}" | ||
git push origin "${tag_name}" | ||
popd &> /dev/null | ||
rm -rf "${repo_dir}" | ||
|
||
gh release create --repo="${repo}" "${tag_name}" --title "${release_name} ${version}" --notes "" | ||
gh release upload --repo="${repo}" "${tag_name}" "${artifacts[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.