1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🐛 Install arm64 emulator when building source_declarative_manifest (#35839)

This commit is contained in:
Alexandre Girard
2024-03-05 16:19:04 -08:00
committed by GitHub
parent 67c918b6fb
commit 349faeda48
2 changed files with 11 additions and 6 deletions

View File

@@ -223,7 +223,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: airbytehq/airbyte
ref: master
ref: ${{ github.event.inputs.gitref }}
- name: Install Java
uses: actions/setup-java@v3
with:
@@ -245,8 +245,6 @@ jobs:
command: |
docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
./tools/integrations/manage.sh publish airbyte-cdk/python false
attempt_limit: 3
attempt_delay: 5000 in # ms
- name: Post failure to Slack channel dev-connectors-extensibility
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.23.0

View File

@@ -231,11 +231,18 @@ cmd_publish() {
# Alternative local approach @ https://github.com/docker/buildx/issues/301#issuecomment-755164475
# We need to use the regular docker buildx driver (not docker container) because we need this intermediate contaiers to be available for later build steps
echo Installing arm64 docker emulation
docker run --privileged --rm tonistiigi/binfmt --install arm64
for arch in $(echo $build_arch | sed "s/,/ /g")
do
echo "building base images for $arch"
docker buildx build -t airbyte/integration-base:dev --platform $arch --load airbyte-integrations/bases/base
docker buildx build -t airbyte/integration-base-java:dev --platform $arch --load airbyte-integrations/bases/base-java
# These images aren't needed for the CDK
if [ "$path" != "airbyte-cdk/python" ]; then
echo "building base images for $arch"
docker buildx build -t airbyte/integration-base-java:dev --platform $arch --load airbyte-integrations/bases/base-java
docker buildx build -t airbyte/integration-base:dev --platform $arch --load airbyte-integrations/bases/base
fi
# For a short while (https://github.com/airbytehq/airbyte/pull/25034), destinations rely on the normalization image to build
# Thanks to gradle, destinstaions which need normalization will already have built base-normalization's "build" artifacts