-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/webui/next-14.2.10
- Loading branch information
Showing
325 changed files
with
11,919 additions
and
11,156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Replace all PublicKey with string | ||
replace PublicKey string | ||
// Replace all types.Duration with primitive int | ||
replace Duration int64 |
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,15 @@ | ||
steps: | ||
- group: "Build Bacalhau Image" | ||
steps: | ||
- trigger: "bacalhau-golang" | ||
label: ":rocket: Build CLI " | ||
env: | ||
TRIGGER_JOB_ID: "${BUILDKITE_JOB_ID}" | ||
build: | ||
message: "${BUILDKITE_MESSAGE}" | ||
commit: "${BUILDKITE_COMMIT}" | ||
branch: "${BUILDKITE_BRANCH}" | ||
|
||
- wait: ~ | ||
- label: ":fish: Build Bacalhau Image" | ||
command: "./buildkite/scripts/build_bacalhau_image.sh" |
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,56 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
set_environment_variables() { | ||
export GIT_TAG=$(git describe --tags --always) | ||
} | ||
|
||
docker_login() { | ||
export GHCR_PAT=$(buildkite-agent secret get GHCR_PAT) | ||
echo $GHCR_PAT | docker login ghcr.io -u bacalhau-infra-bot --password-stdin | ||
} | ||
|
||
docker_context_create() { | ||
docker context create buildx-build | ||
docker buildx create --use buildx-build | ||
} | ||
|
||
download_and_extract_artifact() { | ||
local arch=$1 | ||
local tarball="bacalhau_${GIT_TAG}_linux_${arch}.tar.gz" | ||
local target_dir="bin/linux/${arch}" | ||
|
||
mkdir -p "$target_dir" | ||
if ! tar xf "$tarball" -C "$target_dir"; then | ||
echo "Error: Failed to extract $tarball" >&2 | ||
exit 1 | ||
fi | ||
echo "Extracted $tarball to $target_dir folder" | ||
} | ||
|
||
download_artifacts() { | ||
if ! buildkite-agent artifact download "*.*" . --build "$BUILDKITE_BUILD_ID"; then | ||
echo "Error: Failed to download artifacts from build pipeline" >&2 | ||
exit 1 | ||
fi | ||
echo "Downloaded artifacts from build pipeline" | ||
|
||
download_and_extract_artifact "amd64" | ||
download_and_extract_artifact "arm64" | ||
} | ||
|
||
main() { | ||
if [ -n "${BUILDKITE_TAG:-}" ]; then | ||
set_environment_variables | ||
docker_context_create | ||
download_artifacts | ||
make build-bacalhau-image | ||
docker_login | ||
make push-bacalhau-image | ||
else | ||
echo "Skipping artifact download: BUILDKITE_TAG is not present" | ||
fi | ||
} | ||
|
||
main |
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 |
---|---|---|
@@ -1,3 +1,37 @@ | ||
#!/bin/bash | ||
|
||
make build-python-apiclient | ||
set -e | ||
|
||
setup_environment_variables() { | ||
export PYPI_TOKEN=$(buildkite-agent secret get PYPI_TOKEN) | ||
export TEST_PYPI_TOKEN=$(buildkite-agent secret get TEST_PYPI_TOKEN) | ||
export RELEASE_PYTHON_PACKAGES=1 | ||
} | ||
|
||
download_swagger() { | ||
cd docs | ||
rm -rf swagger.json | ||
buildkite-agent artifact download "swagger.json" . --build $BUILDKITE_BUILD_ID | ||
cd .. | ||
} | ||
|
||
build_python_apiclient() { | ||
make build-python-apiclient | ||
} | ||
|
||
publish_python_apiclient() { | ||
make release-python-apiclient | ||
} | ||
|
||
|
||
main () { | ||
setup_environment_variables | ||
download_swagger | ||
build_python_apiclient | ||
|
||
if [ -n "$BUILDKITE_TAG" ]; then | ||
publish_python_apiclient | ||
fi | ||
} | ||
|
||
main |
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,29 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
setup_environment_variables() { | ||
export PYPI_TOKEN=$(buildkite-agent secret get PYPI_TOKEN) | ||
export TEST_PYPI_TOKEN=$(buildkite-agent secret get TEST_PYPI_TOKEN) | ||
export RELEASE_PYTHON_PACKAGES=1 | ||
} | ||
|
||
build_python_sdk() { | ||
make build-python-sdk | ||
} | ||
|
||
publish_python_sdk() { | ||
make release-python-sdk | ||
} | ||
|
||
main() { | ||
setup_environment_variables | ||
build_python_sdk | ||
|
||
if [ -n "$BUILDKITE_TAG" ]; then | ||
publish_python_sdk | ||
fi | ||
|
||
} | ||
|
||
main |
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,19 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Call generate_swagger.sh | ||
generate_swagger() { | ||
./scripts/generate_swagger.sh | ||
} | ||
|
||
upload_swagger() { | ||
cd docs | ||
buildkite-agent artifact upload "swagger.json" | ||
} | ||
|
||
main() { | ||
generate_swagger | ||
upload_swagger | ||
} | ||
|
||
main |
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
Oops, something went wrong.