fix: use docker buildx for multiarch build
Some checks failed
Build & Push Docker Image / build (push) Failing after 0s
Some checks failed
Build & Push Docker Image / build (push) Failing after 0s
This commit is contained in:
parent
50f79af325
commit
6830de73ef
1 changed files with 5 additions and 7 deletions
|
|
@ -16,10 +16,11 @@ jobs:
|
|||
git fetch --depth 0 origin main
|
||||
git checkout main
|
||||
|
||||
- name: Set up Docker
|
||||
- name: Set up Docker Buildx
|
||||
run: |
|
||||
docker version
|
||||
docker info
|
||||
docker run --rm --privileged multiarch/qemu-user-static --setup
|
||||
docker buildx create --use
|
||||
docker buildx inspect --bootstrap
|
||||
|
||||
- name: Login to Forgejo Registry
|
||||
run: |
|
||||
|
|
@ -31,7 +32,4 @@ jobs:
|
|||
SHA_SHORT=$(git rev-parse --short HEAD)
|
||||
echo "Building commit: $SHA_SHORT"
|
||||
|
||||
docker build --platform linux/amd64 -t git.khoavo.myds.me/vndangkhoa/kv-tube:${SHA_SHORT} -t git.khoavo.myds.me/vndangkhoa/kv-tube:latest .
|
||||
|
||||
docker push git.khoavo.myds.me/vndangkhoa/kv-tube:${SHA_SHORT}
|
||||
docker push git.khoavo.myds.me/vndangkhoa/kv-tube:latest
|
||||
docker buildx build --platform linux/amd64 -t git.khoavo.myds.me/vndangkhoa/kv-tube:${SHA_SHORT} -t git.khoavo.myds.me/vndangkhoa/kv-tube:latest --push .
|
||||
Loading…
Reference in a new issue