Skip to content

🐛 octavia-cli: cross-platform builds (arm64 + amd64) #11226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion octavia-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This script:
## 2.b If you want to directly run the CLI without alias in your current directory:
```bash
mkdir my_octavia_project_directory # Create your octavia project directory where YAML configurations will be stored.
docker run -i --rm -v ./my_octavia_project_directory:/home/octavia-project --network host -e AIRBYTE_URL="http://localhost:8000" airbyte/octavia-cli:dev
docker run -i --rm -v ./my_octavia_project_directory:/home/octavia-project --network host -e AIRBYTE_URL="http://localhost:8000" airbyte/octavia-cli:0.1.0
```


Expand Down
11 changes: 8 additions & 3 deletions octavia-cli/publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash

set -eux
set -ux
VERSION=$1
docker tag airbyte/octavia-cli:dev airbyte/octavia-cli:${VERSION}
docker push airbyte/octavia-cli:${VERSION}
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

docker buildx create --name octavia_builder > /dev/null 2>&1
set -e
docker buildx use octavia_builder
docker buildx inspect --bootstrap
docker buildx build --push --tag airbyte/octavia-cli:${VERSION} --platform=linux/arm64,linux/amd64 ${SCRIPT_DIR}