mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
Add info telling me how to release
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,4 +1,4 @@
|
||||
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help')
|
||||
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|docs')
|
||||
|
||||
.dapper:
|
||||
@echo Downloading dapper
|
||||
|
@@ -7,6 +7,10 @@ BASE=images
|
||||
source $(dirname $0)/version
|
||||
cd $(dirname $0)/..
|
||||
|
||||
mkdir -p dist
|
||||
rm -f dist/images
|
||||
touch dist/images
|
||||
|
||||
for i in $BASE/[0-9]*; do
|
||||
name="os-$(echo ${i} | cut -f2 -d-)"
|
||||
tag="${OS_REPO}/${name}:${VERSION}${SUFFIX}"
|
||||
@@ -17,6 +21,7 @@ for i in $BASE/[0-9]*; do
|
||||
|
||||
if dapper -d --build -f ${i}/Dockerfile -- -t rancher/${name} ${i}; then
|
||||
docker tag rancher/${name} ${tag}
|
||||
echo "${tag}" >> dist/images
|
||||
elif [ "$?" != "42" ]; then
|
||||
exit 1
|
||||
else
|
||||
|
26
scripts/ci
26
scripts/ci
@@ -1,11 +1,23 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
cd $(dirname $0)/..
|
||||
|
||||
./build
|
||||
./test
|
||||
./validate
|
||||
./prepare
|
||||
./package
|
||||
./integration-test
|
||||
./scripts/build
|
||||
./scripts/test
|
||||
./scripts/validate
|
||||
./scripts/prepare
|
||||
./scripts/package
|
||||
./scripts/integration-test
|
||||
|
||||
echo "--- Run"
|
||||
echo "github-release release --user rancher --repo os --tag ${VERSION} --pre-release --draft"
|
||||
for file in $(ls dist/artifacts/); do
|
||||
if [ "$file" != "installer.tar" ]; then
|
||||
echo "github-release upload --user rancher --repo os --tag ${VERSION} \
|
||||
--file ./dist/kernel/${file} -name ${file}"
|
||||
fi
|
||||
done
|
||||
echo
|
||||
|
||||
cat dist/images | sed 's/^/docker push /'
|
||||
|
@@ -17,5 +17,5 @@ trap "rm -rf ./scripts/installer/build" EXIT
|
||||
|
||||
docker build -t ${OS_REPO}/os:${VERSION}${SUFFIX} --build-arg VERSION=${VERSION} -f $DOCKERFILE ./scripts/installer
|
||||
docker save -o dist/artifacts/installer.tar ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
echo ${OS_REPO}/os:${VERSION}${SUFFIX} > dist/images
|
||||
echo ${OS_REPO}/os:${VERSION}${SUFFIX} >> dist/images
|
||||
echo Built ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
|
Reference in New Issue
Block a user