Skip to content

Commit

Permalink
gh: publish image on ghcr.io
Browse files Browse the repository at this point in the history
It looks like the Docker Hub and its mirrors are no longer available in
China, while ghrc.io seems OK for the moment.

It is easy to publish the image on ghcr.io as well, let's do that then.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Aug 9, 2024
1 parent 544fd7b commit 0563c6f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ on:

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
Expand All @@ -23,12 +29,21 @@ jobs:
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@v5
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: mptcp/mptcp-upstream-virtme-docker:${{ github.ref_name }}
tags: |
mptcp/mptcp-upstream-virtme-docker:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 comments on commit 0563c6f

Please sign in to comment.