Skip to content

Commit

Permalink
Merge pull request #50 from warjiang/feature/upgrade-actions
Browse files Browse the repository at this point in the history
build: upgrade github actions
  • Loading branch information
karmada-bot authored Jun 13, 2024
2 parents 2382fc0 + b9c2377 commit 3ed014c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
Expand All @@ -27,7 +27,7 @@ jobs:
pnpm install -w
pnpm run dashboard:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-artifact@v4
with:
path: ui/apps/dashboard/dist
name: dashboard_artifact
Expand Down Expand Up @@ -58,16 +58,13 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build karmada-dashboard-web binary
run: make bin-karmada-dashboard-web
- name: Download a Build Artifact
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dashboard_artifact
path: .
- name: Unzip Artifact
path: _output/bin/${{ steps.misc.outputs.os }}/${{ steps.misc.outputs.arch }}/dist
- name: Display artifact
run: |
pwd
mkdir -p _output/bin/${{ steps.misc.outputs.os }}/${{ steps.misc.outputs.arch }}/dist
tar xf ./artifact.tar -C _output/bin/${{ steps.misc.outputs.os }}/${{ steps.misc.outputs.arch }}/dist
ls -al _output/bin
ls -al _output/bin/${{ steps.misc.outputs.os }}/${{ steps.misc.outputs.arch }}/dist
- name: Extract metadata for the Docker image
Expand Down

0 comments on commit 3ed014c

Please sign in to comment.