mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +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:
|
.dapper:
|
||||||
@echo Downloading dapper
|
@echo Downloading dapper
|
||||||
|
@@ -7,6 +7,10 @@ BASE=images
|
|||||||
source $(dirname $0)/version
|
source $(dirname $0)/version
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
|
mkdir -p dist
|
||||||
|
rm -f dist/images
|
||||||
|
touch dist/images
|
||||||
|
|
||||||
for i in $BASE/[0-9]*; do
|
for i in $BASE/[0-9]*; do
|
||||||
name="os-$(echo ${i} | cut -f2 -d-)"
|
name="os-$(echo ${i} | cut -f2 -d-)"
|
||||||
tag="${OS_REPO}/${name}:${VERSION}${SUFFIX}"
|
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
|
if dapper -d --build -f ${i}/Dockerfile -- -t rancher/${name} ${i}; then
|
||||||
docker tag rancher/${name} ${tag}
|
docker tag rancher/${name} ${tag}
|
||||||
|
echo "${tag}" >> dist/images
|
||||||
elif [ "$?" != "42" ]; then
|
elif [ "$?" != "42" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
26
scripts/ci
26
scripts/ci
@@ -1,11 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
./build
|
./scripts/build
|
||||||
./test
|
./scripts/test
|
||||||
./validate
|
./scripts/validate
|
||||||
./prepare
|
./scripts/prepare
|
||||||
./package
|
./scripts/package
|
||||||
./integration-test
|
./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 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}
|
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}
|
echo Built ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||||
|
Reference in New Issue
Block a user