Skip to content

[+] Add new case test & Merge master change into interop branch (#347) #6

[+] Add new case test & Merge master change into interop branch (#347)

[+] Add new case test & Merge master change into interop branch (#347) #6

name: Build interop Docker image
on:
push:
branches: [ interop ]
permissions: read-all
jobs:
build:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish interop docker image
uses: docker/build-push-action@v4
with:
context: interop
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/xquic-interop:latest
- name: Push image to GHCR
run: |
docker buildx imagetools create \
--tag ghcr.io/${{ github.repository }}/xquic-interop:latest \
${{ secrets.DOCKERHUB_USERNAME }}/xquic-interop:latest