Skip to content

Commit

Permalink
add: workflow build docker image
Browse files Browse the repository at this point in the history
Signed-off-by: MicroOps <[email protected]>
  • Loading branch information
MicroOps-cn committed Oct 24, 2024
1 parent b5b12aa commit 97f0a1f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/github-actions-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ jobs:
node-version: 20
- name: Build
run: make ui

- name: Upload UI artifact
uses: actions/upload-artifact@v4
with:
name: ui-${{ github.run_id }}
name: static
path: pkg/transport/static
if-no-files-found: error
retention-days: 1
Expand All @@ -44,11 +43,13 @@ jobs:
uses: actions/download-artifact@v4
with:
path: pkg/transport/static
pattern: ui-${{ github.run_id }}
name: static
merge-multiple: true
- name: Check UI artifact
run: |
if [ ! -d pkg/transport/static ] || [ ! -f "pkg/transport/static/index.html" ] || [ ! -f "pkg/transport/static/logo.svg" ]; then
ls -al pkg/transport/static
ls -al pkg/transport/static/*
echo "UI artifact not found"
exit 1
fi
Expand Down Expand Up @@ -138,7 +139,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ github.run_id }}-${{ matrix.OS }}-${{ matrix.ARCH }}
name: digests-${{ matrix.OS }}-${{ matrix.ARCH }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -151,7 +152,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-${{ github.run_id }}
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
Expand Down

0 comments on commit 97f0a1f

Please sign in to comment.