diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 17d2457..3e01803 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: prepare tag id: prepare_tag @@ -43,12 +43,18 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + version: "lab:latest" + driver: cloud + endpoint: "drachtio/freeswitch-builder" + + - name: Build and push + uses: docker/build-push-action@v5 with: context: . - push: true tags: ${{ steps.prepare_tag.outputs.image_id }}:${{ steps.prepare_tag.outputs.version }} - build-args: | - GITHUB_REPOSITORY=$GITHUB_REPOSITORY - GITHUB_REF=$GITHUB_REF + # 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' }} diff --git a/Dockerfile b/Dockerfile index 2c90af2..ee6163f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done \ && git config --global pull.rebase true \ && git clone https://github.com/signalwire/freeswitch.git -b v1.10.10 \ && git clone https://github.com/warmcat/libwebsockets.git -b v4.3.3 \ - && git clone https://github.com/jambonz/freeswitch-modules.git -b main \ + && git clone https://github.com/jambonz/freeswitch-modules.git -b main \ && git clone https://github.com/grpc/grpc -b master && cd grpc && git checkout v1.57.0 && cd .. \ && cd freeswitch/libs \ && git clone https://github.com/drachtio/nuance-asr-grpc-api.git -b main \