Skip to content

Commit

Permalink
Add authoring centos 6.9 bootstrap iso to CI
Browse files Browse the repository at this point in the history
Add authoring centos 6.9 bootstrap iso to CI pipeline for
integration tests.
  • Loading branch information
DanielXiao committed Nov 12, 2018
1 parent 1ab2cba commit cda5142
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,24 @@ pipeline:
when:
status: success

custom-bootstrap-iso:
image: 'gcr.io/eminent-nation-87317/vic-build-image:yum'
pull: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- drone_server
- drone_token
- github_automation_api_key
- codecov_token
commands:
- export BUILD_NUMBER=${DRONE_BUILD_NUMBER}
- ./tests/generate-custom-iso.sh centos-6.9
when:
status: success

vic-integration-test-on-pr:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
pull: true
Expand Down
24 changes: 24 additions & 0 deletions tests/generate-custom-iso.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# Copyright 2017 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This script is to author custom bootstrap iso image. Pass repo name
# under isos/base/repos as argument.
set -e && [ -n "$DEBUG" ] && set -x
REPO=$1
mv bin bin.bak
REPO=${REPO} make bootstrap-custom
mv bin/bootstrap-${REPO}.iso bin.bak/
rm -rf bin
mv bin.bak bin

0 comments on commit cda5142

Please sign in to comment.