mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 21:02:34 +00:00
actions: Remove scripts from actions directory.
kata-deploy logic was moved to its own directory. Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
parent
2f9859ab2f
commit
bbb06c4975
18
.github/workflows/gather-artifacts.sh
vendored
18
.github/workflows/gather-artifacts.sh
vendored
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (c) 2019 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
pushd kata-artifacts >>/dev/null
|
|
||||||
for c in ./*.tar.gz
|
|
||||||
do
|
|
||||||
echo "untarring tarball $c"
|
|
||||||
tar -xvf $c
|
|
||||||
done
|
|
||||||
|
|
||||||
tar cvfJ ../kata-static.tar.xz ./opt
|
|
||||||
popd >>/dev/null
|
|
36
.github/workflows/generate-artifact-tarball.sh
vendored
36
.github/workflows/generate-artifact-tarball.sh
vendored
@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (c) 2019 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
|
|
||||||
main() {
|
|
||||||
artifact_stage=${1:-}
|
|
||||||
artifact=$(echo ${artifact_stage} | sed -n -e 's/^install_//p' | sed -r 's/_/-/g')
|
|
||||||
if [ -z "${artifact}" ]; then
|
|
||||||
"Scripts needs artifact name to build"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
|
||||||
export GOPATH=$HOME/go
|
|
||||||
|
|
||||||
go get github.com/kata-containers/packaging || true
|
|
||||||
pushd $GOPATH/src/github.com/kata-containers/packaging/release >>/dev/null
|
|
||||||
git checkout $tag
|
|
||||||
pushd ../obs-packaging
|
|
||||||
./gen_versions_txt.sh $tag
|
|
||||||
popd
|
|
||||||
|
|
||||||
source ./kata-deploy-binaries.sh
|
|
||||||
${artifact_stage} $tag
|
|
||||||
popd
|
|
||||||
|
|
||||||
mv $HOME/go/src/github.com/kata-containers/packaging/release/kata-static-${artifact}.tar.gz .
|
|
||||||
}
|
|
||||||
|
|
||||||
main $@
|
|
@ -1,34 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (c) 2019 Intel Corporation
|
|
||||||
# Copyright (c) 2020 Ant Group
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
|
|
||||||
main() {
|
|
||||||
artifact_stage=${1:-}
|
|
||||||
artifact=$(echo ${artifact_stage} | sed -n -e 's/^install_//p' | sed -r 's/_/-/g')
|
|
||||||
if [ -z "${artifact}" ]; then
|
|
||||||
"Scripts needs artifact name to build"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
|
||||||
pushd $GITHUB_WORKSPACE/tools/packaging
|
|
||||||
git checkout $tag
|
|
||||||
./scripts/gen_versions_txt.sh $tag
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd $GITHUB_WORKSPACE/tools/packaging/release
|
|
||||||
source ./kata-deploy-binaries.sh
|
|
||||||
${artifact_stage} $tag
|
|
||||||
popd
|
|
||||||
|
|
||||||
mv $GITHUB_WORKSPACE/tools/packaging/release/kata-static-${artifact}.tar.gz .
|
|
||||||
}
|
|
||||||
|
|
||||||
main $@
|
|
Loading…
Reference in New Issue
Block a user