Skip to content

Commit c9075a7

Browse files
authored
add setup-buildx action to release build (#288)
*Issue #, if available:* *Description of changes:* The most recent Release build workflow failed: ``` ERROR: failed to build: Multi-platform build is not supported for the docker driver. Switch to a different driver, or turn on the containerd image store, and try again. ``` Fix by first running [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action?tab=readme-ov-file#about), which creates and starts a builder compatible with multi-platform images. Tested by using the artifacts_build action, triggered by main build, to build/push a multi-platform image. Without this step, the action fails with the same error message as the Release workflow. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent b550c43 commit c9075a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ jobs:
119119
- name: Checkout Repo @ SHA - ${{ github.sha }}
120120
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
121121

122+
- name: Build Tarball and Image Files
123+
uses: ./.github/actions/artifacts_build
124+
with:
125+
image_uri_with_tag: "adot-autoinstrumentation-node:test"
126+
push_image: false
127+
load_image: true
128+
node_version: "20"
129+
package_name: aws-distro-opentelemetry-node-autoinstrumentation
130+
os: ubuntu-latest
131+
122132
- name: Configure AWS credentials for private ECR
123133
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0
124134
with:

0 commit comments

Comments
 (0)