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

to build assets for branches and the eve sources push #3245

Merged
merged 1 commit into from
May 30, 2023
Merged

to build assets for branches and the eve sources push #3245

merged 1 commit into from
May 30, 2023

Conversation

yash-zededa
Copy link
Collaborator

  • will push the snapshot version of the eve-sources to dockerhub
  • added HV=kvm in eve-sources section.

Local execution:

bash-3.2$ make -n LINUXKIT_PKG_TARGET=push publish_sources
: "eve-build-eve: Begin: GOBUILDER=eve-build-eve"
echo "Creating go builder image for user eve"
docker build --build-arg GOVER=1.20.1 --build-arg USER=eve --build-arg GROUP=eve \
                      --build-arg UID=1001 --build-arg GID=1001 \
                          \
                      -t eve-build-eve build-tools/src/scripts > /dev/null
echo "eve-build-eve docker container is ready to use"
: eve-build-eve: Succeeded
echo Done building /Users/yash/fork/eve/build-tools/bin/linuxkit
if [ ! -f "pkg/kernel/build.yml" ] || [ ! -f "pkg/new-kernel/build.yml" ]; then tools/kernel-build-yml.sh; fi
tools/compose-image-yml.sh images/rootfs.yml.in images/rootfs-kvm.yml.in "0.0.0-master-202045a3-kvm-amd64"
DOCKER_ARCH_TAG=amd64 ./tools/parse-pkgs.sh images/rootfs-kvm.yml.in > images/rootfs-kvm.yml
: images/rootfs-kvm.yml: Succeeded
mkdir -p /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/installer
cp -r pkg/eve/installer/* /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/installer
# sample output 0.0.0-HEAD-a437e8e4-xen-amd64
echo 0.0.0-master-202045a3-kvm-amd64 > /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/installer/eve_version
: /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/rootfs.tar: Begin
./tools/makerootfs.sh tar -y images/rootfs-kvm.yml -t /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/rootfs.tar -a amd64
: /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/rootfs.tar: Succeeded
mkdir -p /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources
: /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources/collected_sources.tar.gz: Begin
bash tools/collect-sources.sh /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/rootfs.tar /Users/yash/fork/eve /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources/collected_sources.tar.gz
: /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources/collected_sources.tar.gz: Succeeded
: publish_sources: Begin
cp pkg/sources/* /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources
/Users/yash/fork/eve/build-tools/bin/linuxkit  pkg push --platforms linux/amd64 --hash-path /Users/yash/fork/eve --hash 0.0.0-master-202045a3-kvm --docker --release snapshot-kvm /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources 
if [ -n "snapshot" ] && [ kvm = kvm ]; then \
	   /Users/yash/fork/eve/build-tools/bin/linuxkit  pkg push --platforms linux/amd64 --hash-path /Users/yash/fork/eve --hash snapshot-kvm --docker --release snapshot /Users/yash/fork/eve/dist/amd64/0.0.0-master-202045a3/sources  ;\
	fi
: publish_sources: Succeeded
rm images/rootfs-kvm.yml.in

- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
- "[0-9]+.[0-9]+-lts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to switch to -lts branch name? (Just curious).
FWIW we use X.Y.Z-lts tag names on the current X.Y-stable branch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The make patch over the stable branch creates a tag tag: 8.12.4-lts so I have added -lts for that reason since github action considers that as a branch when we refer the workflows. Not sure if the tags filter would work the way it should. Can have another PR for tags filter if needed

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: yash-zededa <yash@zededa.com>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit af13472 into lf-edge:master May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants