Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
build for both amd and arm arch (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton authored Jun 8, 2024
1 parent 896b3cc commit bafc704
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
for var in cmakeVersion grpcVersion libwebsocketsVersion speechSdkVersion spandspVersion sofiaVersion awsSdkCppVersion freeswitchModulesVersion freeswitchVersion; do
value=$(grep "$var" .env | cut -d'=' -f2)
echo "$var=$value" >> $GITHUB_OUTPUT
echo "$var=$value" >> $GITHUB_ENV
done
shell: bash

Expand Down Expand Up @@ -62,18 +62,17 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ steps.prepare_tag.outputs.image_id }}:${{ steps.prepare_tag.outputs.version }}
build-args: |
build-args: |
BUILD_CPUS=16
CMAKE_VERSION=${{ steps.env_vars.outputs.cmakeVersion }}
GRPC_VERSION=${{ steps.env_vars.outputs.grpcVersion }}
LIBWEBSOCKETS_VERSION=${{ steps.env_vars.outputs.libwebsocketsVersion }}
SPEECH_SDK_VERSION=${{ steps.env_vars.outputs.speechSdkVersion }}
SPANDSP_VERSION=${{ steps.env_vars.outputs.spandspVersion }}
SOFIA_VERSION=${{ steps.env_vars.outputs.sofiaVersion }}
AWS_SDK_CPP_VERSION=${{ steps.env_vars.outputs.awsSdkCppVersion }}
FREESWITCH_MODULES_VERSION=${{ steps.env_vars.outputs.freeswitchModulesVersion }}
FREESWITCH_VERSION=${{ steps.env_vars.outputs.freeswitchVersion }}
# For pull requests, export results to the build cache.
# Otherwise, push to a registry.
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }}
CMAKE_VERSION=${{ env.cmakeVersion }}
GRPC_VERSION=${{ env.grpcVersion }}
LIBWEBSOCKETS_VERSION=${{ env.libwebsocketsVersion }}
SPEECH_SDK_VERSION=${{ env.speechSdkVersion }}
SPANDSP_VERSION=${{ env.spandspVersion }}
SOFIA_VERSION=${{ env.sofiaVersion }}
AWS_SDK_CPP_VERSION=${{ env.awsSdkCppVersion }}
FREESWITCH_MODULES_VERSION=${{ env.freeswitchModulesVersion }}
FREESWITCH_VERSION=${{ env.freeswitchVersion }}
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }}

0 comments on commit bafc704

Please sign in to comment.