Skip to content

Run go get outside of docker. #12

Run go get outside of docker.

Run go get outside of docker. #12

Workflow file for this run

name: Go Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.1
- name: Pull and run build in Docker container
run: |
docker pull sippylabs/rtpproxy:latest
- name: Build
run: |
go get
echo ${RUNNER_TOOL_CACHE}
docker run --rm -v ${RUNNER_TOOL_CACHE}:${RUNNER_TOOL_CACHE} -v ${HOME}:${HOME} -e PATH \
-e WORKSPACE=${{ github.workspace }} --entrypoint /bin/sh sippylabs/rtpproxy:latest -c \
'cd ${WORKSPACE} && go build -o rtp_cluster'