mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 05:04:26 +00:00
actions: kata-deploy on PRs and use makefile
- Run kata-deploy tarball generation action on every PR. - Use kata-deploy makefile targets. Signed-off-by: Carlos Venegas <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
78d99f5129
commit
626d659fd9
10
.github/workflows/kata-deploy-push.yaml
vendored
10
.github/workflows/kata-deploy-push.yaml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: kata-deploy-build
|
name: kata deploy build
|
||||||
|
|
||||||
on: push
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-asset:
|
build-asset:
|
||||||
@ -24,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build ${{ matrix.asset }}
|
- name: Build ${{ matrix.asset }}
|
||||||
run: |
|
run: |
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh --build="${KATA_ASSET}"
|
make "${KATA_ASSET}-tarball"
|
||||||
build_dir=$(readlink -f build)
|
build_dir=$(readlink -f build)
|
||||||
# store-artifact does not work with symlink
|
# store-artifact does not work with symlink
|
||||||
sudo cp -r --preserve=all "${build_dir}" "kata-build"
|
sudo cp -r --preserve=all "${build_dir}" "kata-build"
|
||||||
@ -47,10 +47,10 @@ jobs:
|
|||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
path: kata-artifacts
|
path: build
|
||||||
- name: merge-artifacts
|
- name: merge-artifacts
|
||||||
run: |
|
run: |
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh kata-artifacts
|
make merge-builds
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user