Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
xOS committed Aug 25, 2024
1 parent de52e80 commit 1f76821
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1,325 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/dashboard.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Dashboard Image And Push
name: Release

on:
workflow_dispatch:
Expand All @@ -9,14 +9,12 @@ on:
- "master"
paths-ignore:
- "cmd/playground/**"
- "cmd/agent/**"
- "script/**"
- "*.md"
- ".*"
- ".github/workflows/agent.yml"

jobs:
deploy:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -60,35 +58,33 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to the AliyunCS
uses: docker/login-action@master
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ALI_USER }}
password: ${{ secrets.ALI_PAT }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set up image name
run: |
GHRC_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/server-dash" | tr '[:upper:]' '[:lower:]')
DOC_IMAGE_NAME=$(echo "nangle/server-dash" | tr '[:upper:]' '[:lower:]')
if [ ${{ github.repository_owner }} = "xOS" ]
if [ ${{ github.repository_owner }} = "xos" ]
then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/dns/server-dash")
else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/server-dash" | tr '[:upper:]' '[:lower:]')
fi
echo "::set-output name=GHRC_IMAGE_NAME::$GHRC_IMAGE_NAME"
echo "::set-output name=ALI_IMAGE_NAME::$ALI_IMAGE_NAME"
echo "::set-output name=DOC_IMAGE_NAME::$DOC_IMAGE_NAME"
id: image-name

- name: Build Dasbboard Image And Push
- name: Build dasbboard image And Push
uses: docker/build-push-action@v5
with:
context: .
Expand Down
Loading

0 comments on commit 1f76821

Please sign in to comment.