mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 01:15:52 +08:00
fix: docker action
This commit is contained in:
22
.github/workflows/go.yml
vendored
22
.github/workflows/go.yml
vendored
@@ -93,18 +93,16 @@ jobs:
|
||||
tar -zxvf bin/m7s_v5_linux_arm64.tar.gz
|
||||
mv m7s monibuca_arm64
|
||||
docker login -u langhuihui -p ${{ secrets.DOCKER_PASSWORD }}
|
||||
docker buildx build --platform linux/amd64,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 }}
|
||||
if [[ "${{ env.version }}" == *"beta"* ]]; then
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t langhuihui/monibuca:v5 --push .
|
||||
else
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t langhuihui/monibuca:v5 -t langhuihui/monibuca:${{ env.version }} --push .
|
||||
fi
|
||||
- name: docker build lite version
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -f DockerfileLite -t monibuca/v5:latest --push .
|
||||
- name: docker lite push version tag
|
||||
if: success() && !contains(env.version, 'beta')
|
||||
run: |
|
||||
docker tag monibuca/v5 monibuca/v5:${{ env.version }}
|
||||
docker push lmonibuca/v5:${{ env.version }}
|
||||
if [[ "${{ env.version }}" == *"beta"* ]]; then
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -f DockerfileLite -t monibuca/v5:latest --push .
|
||||
else
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -f DockerfileLite -t monibuca/v5:latest -t monibuca/v5:${{ env.version }} --push .
|
||||
fi
|
Reference in New Issue
Block a user