Skip to content

Merge branch 'latest' into net #388

Merge branch 'latest' into net

Merge branch 'latest' into net #388

Workflow file for this run

name: dockerhub
on:
push:
branches:
- 'latest'
- 'net'
jobs:
docker:
name: Build and push Docker images to multiple registries
if: github.repository_owner == 'multipath-tcp'
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
platforms: linux/amd64 # linux/arm64: too slow...
push: true
cache-from: type=registry,ref=mptcp/mptcp-upstream-virtme-docker:${{ github.ref_name }}
cache-to: type=inline
tags: |
mptcp/mptcp-upstream-virtme-docker:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:${{ github.ref_name }}