mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 05:08:13 -05:00
增加ARM的dashboard支持
This commit is contained in:
parent
eeb6b73141
commit
a638fc879a
28
.github/workflows/dashboard.yml
vendored
28
.github/workflows/dashboard.yml
vendored
@ -34,26 +34,26 @@ jobs:
|
|||||||
go env
|
go env
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
|
|
||||||
- name: Build dasbboard image
|
- name: Set up image name
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm
|
|
||||||
push: false
|
|
||||||
tags: nezha-dasbboard
|
|
||||||
|
|
||||||
- name: Push dasbboard image
|
|
||||||
run: |
|
run: |
|
||||||
GHRC_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
|
GHRC_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
|
||||||
if [ ${{ github.repository_owner }} = "naiba" ]
|
if [ ${{ github.repository_owner }} = "naiba" ]
|
||||||
then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard")
|
then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard")
|
||||||
else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
|
else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
|
||||||
fi
|
fi
|
||||||
docker tag nezha-dasbboard $GHRC_IMAGE_NAME
|
echo "::set-env name=GHRC_IMAGE_NAME::$GHRC_IMAGE_NAME"
|
||||||
docker tag nezha-dasbboard $ALI_IMAGE_NAME
|
echo "::set-env name=ALI_IMAGE_NAME::$ALI_IMAGE_NAME"
|
||||||
docker push $GHRC_IMAGE_NAME
|
|
||||||
docker push $ALI_IMAGE_NAME
|
- name: Build dasbboard image And Push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm,linux/386
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ GHRC_IMAGE_NAME }}
|
||||||
|
${{ ALI_IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Purge jsdelivr cache
|
- name: Purge jsdelivr cache
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user