mirror of
https://github.com/rancher/os.git
synced 2025-08-14 13:03:22 +00:00
Fix Drone CI
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
cbe24ca06b
commit
402af04b44
@ -176,14 +176,14 @@ func ApplyNetworkConfigs(netCfg *NetworkConfig, userSetHostname, userSetDNS bool
|
|||||||
|
|
||||||
//apply network config
|
//apply network config
|
||||||
for _, link := range links {
|
for _, link := range links {
|
||||||
applyOuter(link, netCfg, wg, userSetHostname, userSetDNS)
|
applyOuter(link, netCfg, &wg, userSetHostname, userSetDNS)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg sync.WaitGroup, userSetHostname, userSetDNS bool) {
|
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg *sync.WaitGroup, userSetHostname, userSetDNS bool) {
|
||||||
log.Debugf("applyOuter(%V, %v)", userSetHostname, userSetDNS)
|
log.Debugf("applyOuter(%V, %v)", userSetHostname, userSetDNS)
|
||||||
match, ok := findMatch(link, netCfg)
|
match, ok := findMatch(link, netCfg)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
14
scripts/ci
14
scripts/ci
@ -9,10 +9,12 @@ echo TEST
|
|||||||
./scripts/test
|
./scripts/test
|
||||||
echo VALIDATE
|
echo VALIDATE
|
||||||
./scripts/validate
|
./scripts/validate
|
||||||
echo PREPARE
|
|
||||||
./scripts/prepare
|
# Drone servers kernel too old, and the integration tests often time out
|
||||||
echo PACKAGE
|
#echo PREPARE
|
||||||
./scripts/package
|
#./scripts/prepare
|
||||||
echo INTEGRATION-TEST
|
#echo PACKAGE
|
||||||
./scripts/integration-test
|
#./scripts/package
|
||||||
|
#echo INTEGRATION-TEST
|
||||||
|
#./scripts/integration-test
|
||||||
|
|
||||||
|
@ -9,6 +9,14 @@ export INTEGRATION_TESTS=0
|
|||||||
|
|
||||||
./scripts/ci
|
./scripts/ci
|
||||||
|
|
||||||
|
# from scripts/ci
|
||||||
|
echo PREPARE
|
||||||
|
./scripts/prepare
|
||||||
|
echo PACKAGE
|
||||||
|
./scripts/package
|
||||||
|
echo INTEGRATION-TEST
|
||||||
|
./scripts/integration-test
|
||||||
|
|
||||||
# make generated changelog
|
# make generated changelog
|
||||||
lastrelease=$(hub release | grep -v rc | head -n1 | tr -d ' \r\n')
|
lastrelease=$(hub release | grep -v rc | head -n1 | tr -d ' \r\n')
|
||||||
git log --format="%s: %b" ${lastrelease}..${VERSION} | grep "Merge pull" | sed 's/.*\(#.*\) from .*:\(.*\)/* \1: \2/g' > dist/artifacts/changelog.txt
|
git log --format="%s: %b" ${lastrelease}..${VERSION} | grep "Merge pull" | sed 's/.*\(#.*\) from .*:\(.*\)/* \1: \2/g' > dist/artifacts/changelog.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user