Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix assets release #3178

Merged
merged 1 commit into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,26 @@ jobs:
$APT_INSTALL || { sudo apt update && $APT_INSTALL ; }
echo "ARCH=${{ matrix.arch }}" >> "$GITHUB_ENV"
echo "TAG=$(echo "$REF" | sed -e 's#^.*/##' -e 's#master#snapshot#' -e 's#main#snapshot#')" >> "$GITHUB_ENV"
- name: checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ensure clean assets dir
run : |
rm -rf assets && mkdir -p assets
- name: Pull the EVE release from DockerHUB or build it
run: |
HV=kvm
if [ "${{ github.event.repository.full_name }}" = "lf-edge/eve" ]; then
EVE=lfedge/eve:${{ env.TAG }}-${HV}-${{ env.ARCH }}
docker pull "$EVE"
else
git clone ${{ github.event.repository.html_url }} .
git reset --hard ${{ github.event.workflow_run.head_branch }}
make pkgs
make HV=${HV} ZARCH=${{ env.ARCH }} eve
EVE=lfedge/eve:$(make version)-${HV}-${{ env.ARCH }}
fi
rm -rf assets && mkdir assets && cd assets
docker run "$EVE" rootfs > rootfs.img
docker run "$EVE" installer_net | tar -xvf -
docker run "$EVE" rootfs > assets/rootfs.img
docker run "$EVE" installer_net | tar -C assets -xvf -
- name: Create direct iPXE config
run: |
URL="${{ github.event.repository.html_url }}/releases/download/${{ env.TAG }}/${{ env.ARCH }}."
Expand All @@ -75,13 +79,9 @@ jobs:
mv assets/kernel assets/kernel.gz
gzip -d assets/kernel.gz
fi
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build SBOM and collected sources
run: |
make sbom collected_sources
mkdir -p assets
mv $(make sbom_info collected_sources_info) assets/
- name: Create a GitHub release and clean up artifacts
id: create-release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ tags
tmp/
mkdocs.yml
yetus-output/
assets/