mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 01:15:52 +08:00
chore: docker multi-arch build
This commit is contained in:
16
.github/workflows/go.yml
vendored
16
.github/workflows/go.yml
vendored
@@ -83,7 +83,6 @@ jobs:
|
||||
- name: docker build amd64
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
rm -f m7s monibuca_linux admin.zip
|
||||
curl -L https://download.m7s.live/bin/admin.zip -o admin.zip
|
||||
tar -zxvf bin/m7s_v5_linux_amd64.tar.gz
|
||||
mv m7s monibuca_linux
|
||||
@@ -92,19 +91,12 @@ jobs:
|
||||
- name: docker build arm64
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
rm -f m7s monibuca_linux admin.zip
|
||||
curl -L https://download.m7s.live/bin/admin.zip -o admin.zip
|
||||
tar -zxvf bin/m7s_v5_linux_arm64.tar.gz
|
||||
mv m7s monibuca_linux
|
||||
mv -f m7s monibuca_linux
|
||||
docker login -u langhuihui -p ${{ secrets.DOCKER_PASSWORD }}
|
||||
docker buildx build --platform linux/arm64 -t langhuihui/monibuca:v5-arm64 --push .
|
||||
- name: docker push amd64 version tag
|
||||
docker buildx build --platform linux/arm64 -t langhuihui/monibuca:v5 --push .
|
||||
- name: docker push version tag
|
||||
if: success() && !contains(env.version, 'beta')
|
||||
run: |
|
||||
docker tag langhuihui/monibuca:v5 langhuihui/monibuca:${{ env.version }}
|
||||
docker push langhuihui/monibuca:${{ env.version }}
|
||||
- name: docker push arm64 version tag
|
||||
if: success() && !contains(env.version, 'beta')
|
||||
run: |
|
||||
docker tag langhuihui/monibuca:v5-arm64 langhuihui/monibuca:${{ env.version }}-arm64
|
||||
docker push langhuihui/monibuca:${{ env.version }}-arm64
|
||||
docker push langhuihui/monibuca:${{ env.version }}
|
Reference in New Issue
Block a user