mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 14:23:42 +00:00
ci: docker supports more platforms (#64)
This commit is contained in:
1 parent
db4003ad4f
commit
e8fe6ad550
1 file changed
+22
-7
@@ -327,10 +327,25 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.get-release.outputs.tag_name }}
|
VERSION: ${{ needs.get-release.outputs.tag_name }}
|
||||||
run: |
|
- name: Set up QEMU
|
||||||
tag=liwei2633/gopeed:${VERSION:1}
|
uses: docker/setup-qemu-action@v2
|
||||||
docker build -t $tag .
|
- name: Set up Docker Buildx
|
||||||
docker login -u liwei2633 -p ${{ secrets.DOCKER_PASSWORD }}
|
uses: docker/setup-buildx-action@v2
|
||||||
docker push $tag
|
- name: Login to DockerHub
|
||||||
docker tag $tag liwei2633/gopeed:latest
|
uses: docker/login-action@v1
|
||||||
docker push liwei2633/gopeed:latest
|
with:
|
||||||
|
username: liwei2633
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
env:
|
||||||
|
VERSION: ${{ needs.get-release.outputs.tag_name }}
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: |
|
||||||
|
linux/386
|
||||||
|
linux/amd64
|
||||||
|
linux/arm64
|
||||||
|
tags: |
|
||||||
|
liwei2633:latest
|
||||||
|
liwei2633:${{ env.VERSION }}
|
||||||
Reference in new issue
Block a user