Skip to content

Commit

Permalink
gh action uses docker cloud build
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Apr 3, 2024
1 parent 2e28e2a commit 3a7a531
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: prepare tag
id: prepare_tag
Expand Down Expand Up @@ -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' }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3a7a531

Please sign in to comment.