-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michele Pegoraro
committed
Jul 29, 2020
1 parent
a75a855
commit ad11271
Showing
217 changed files
with
26,458 additions
and
2,903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 1 | ||
|
||
merge: | ||
whitelist: | ||
labels: ["merge when ready"] | ||
comment_substrings: ["==AUTOMERGE==", "==MERGE_WHEN_READY=="] | ||
branches: ["master", "epic/*"] | ||
blacklist: | ||
labels: ["do not merge"] | ||
comment_substrings: ["==DO_NOT_MERGE=="] | ||
method: merge | ||
delete_after_merge: true | ||
|
||
update: | ||
whitelist: | ||
labels: ["wip", "update me"] | ||
branches: ["master", "epic/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,99 @@ | ||
language: node_js | ||
node_js: | ||
- "12" | ||
language: generic | ||
|
||
group: bluezone | ||
dist: xenial | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
global: | ||
- ARTIFACTORY_URL=https://eu.artifactory.swg-devops.com/artifactory | ||
- CHARTS_REPO=wh-spmdevops-helm-virtual | ||
- JFROG_CLI_OFFER_CONFIG=false | ||
matrix: | ||
- CHART_BASENAME=db2 | ||
- CHART_BASENAME=dbbuild | ||
- CHART_BASENAME=xmlserver | ||
- CHART_BASENAME=uawebapp | ||
- CHART_BASENAME=apps | ||
- CHART_BASENAME=batch | ||
- CHART_BASENAME=mqserver | ||
- CHART_BASENAME=web | ||
- CHART_BASENAME=openldap | ||
|
||
stage: Charts | ||
|
||
install: | ||
- npm install -g gatsby markdownlint-cli | ||
- npm install | ||
# Install Helm v3 | ||
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh | ||
- chmod 700 get_helm.sh | ||
- ./get_helm.sh | ||
- helm version | ||
# Install JFrog CLI | ||
- curl -fL https://getcli.jfrog.io | sh | ||
- sudo mv -v jfrog /usr/local/bin/ | ||
- helm plugin install https://github.com/chartmuseum/helm-push | ||
# Starts local Chart Museum instance | ||
- docker run -d -e DEBUG=true -p 8080:8080 -e STORAGE=local -e STORAGE_LOCAL_ROOTDIR=/tmp chartmuseum/chartmuseum:v0.12.0 | ||
- helm repo add sch https://raw.githubusercontent.com/IBM/charts/master/repo/samples | ||
- helm repo update | ||
|
||
script: | ||
- markdownlint **/*.mdx | ||
- gatsby build --prefix-paths | ||
# Validate and package chart | ||
- cd helm-charts/ | ||
- helm dependencies update $CHART_BASENAME | ||
- helm lint $CHART_BASENAME | ||
- helm template $CHART_BASENAME | ||
- | | ||
if [ ! "$TRAVIS_BRANCH" == "master" ]; then | ||
perl -i -p -e "s/^version\: (.*)/version\: \1-$TRAVIS_BUILD_NUMBER/" $CHART_BASENAME/Chart.yaml | ||
fi | ||
- helm package $CHART_BASENAME | ||
|
||
jobs: | ||
include: | ||
# Build Umbrella Chart | ||
- stage: Umbrella | ||
env: | ||
- CHART_BASENAME=spm | ||
before_script: | ||
# Fake connection to 'local-development' via Chart Museum | ||
- helm repo add local-development http://localhost:8080 | ||
- helm repo update | ||
- find helm-charts/ -maxdepth 1 -type d ! -name . ! -name .git ! -name config ! -name jenkinsfiles -exec helm push {} local-development \; | ||
# Build Documentation | ||
- stage: Documentation | ||
language: node_js | ||
node_js: | ||
- "12" | ||
install: | ||
- npm install -g markdownlint-cli | ||
- npm ci | ||
- pip install --user linkchecker | ||
- sed -i "s/TRAVIS_HOST/$(hostname -f)/" linkcheckerrc | ||
script: | ||
- markdownlint **/*.mdx | ||
- npm run build | ||
- docker run --rm -d --name gatsby -p 8888:80 -v $(pwd)/public:/usr/local/apache2/htdocs$SITE_PREFIX httpd:2.4 | ||
- linkchecker http://$(hostname -f):8888$SITE_PREFIX --config=./linkcheckerrc | ||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
local_dir: public | ||
github_token: $GITHUB_TOKEN | ||
github_url: github.ibm.com | ||
committer_from_gh: true | ||
target_branch: gh-pages | ||
on: | ||
branch: master | ||
after_deploy: skip | ||
|
||
deploy: | ||
- provider: pages | ||
skip_cleanup: true | ||
local_dir: public | ||
github_token: $GITHUB_TOKEN | ||
github_url: github.com | ||
committer_from_gh: true | ||
target_branch: gh-pages | ||
on: | ||
branch: master | ||
provider: script | ||
skip_cleanup: true | ||
script: jfrog rt u --url $ARTIFACTORY_URL --apikey $ARTIFACTORY_TOKEN --build-name $TRAVIS_REPO_SLUG --build-number $TRAVIS_JOB_ID ./${CHART_BASENAME}-*.tgz $CHARTS_REPO/ | ||
on: | ||
all_branches: true | ||
|
||
after_deploy: | ||
- jfrog rt bp --url $ARTIFACTORY_URL --apikey $ARTIFACTORY_TOKEN --build-url https://travis.ibm.com/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID} $TRAVIS_REPO_SLUG $TRAVIS_JOB_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
############################################################################### | ||
# Copyright 2020 IBM Corporation | ||
# | ||
# 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. | ||
############################################################################### | ||
|
||
ARG CONTENT_DIR=universal | ||
|
||
# If set, must end with a forward slash, e.g. "registry.redhat.io/" | ||
ARG BASE_REGISTRY | ||
|
||
# Final | ||
FROM ${BASE_REGISTRY}rhel8/httpd-24 | ||
ARG CONTENT_DIR | ||
|
||
COPY --chown=1001:0 build /var/www/html/$CONTENT_DIR | ||
|
||
USER 1001 |
Oops, something went wrong.