File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build interop Docker image
2+ permissions :
3+ contents : read
4+ on :
5+ push :
6+ branches :
7+ - master
8+ - interop-runner
9+ tags :
10+ - ' v*'
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : ${{ github.event_name == 'push' }}
15+
16+ jobs :
17+ interop :
18+ runs-on : ${{ fromJSON(vars['DOCKER_RUNNER_UBUNTU'] || '"ubuntu-latest"') }}
19+ timeout-minutes : 30
20+ steps :
21+ - uses : actions/checkout@v5
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v3
24+ - name : Set up Docker Buildx
25+ uses : docker/setup-buildx-action@v3
26+ with :
27+ platforms : linux/amd64,linux/arm64
28+ - name : Login to Docker Hub
29+ if : github.event_name == 'push'
30+ uses : docker/login-action@v3
31+ with :
32+ username : ${{ secrets.DOCKER_USERNAME }}
33+ password : ${{ secrets.DOCKER_PASSWORD }}
34+ - name : set tag name
35+ id : tag
36+ # Tagged releases won't be picked up by the interop runner automatically,
37+ # but they can be useful when debugging regressions.
38+ run : |
39+ if [[ $GITHUB_REF == refs/tags/* ]]; then
40+ echo "tag=${GITHUB_REF#refs/tags/}" | tee -a $GITHUB_OUTPUT;
41+ else
42+ echo 'tag=latest' | tee -a $GITHUB_OUTPUT;
43+ fi
44+ - uses : docker/build-push-action@v6
45+ with :
46+ context : " ."
47+ file : " interop/Dockerfile"
48+ platforms : linux/amd64,linux/arm64
49+ push : ${{ github.event_name == 'push' }}
50+ tags : martenseemann/webtransport-go-interop:${{ steps.tag.outputs.tag }}
You can’t perform that action at this time.
0 commit comments