-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Showing
76 changed files
with
1,202 additions
and
329 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,5 @@ | ||
draft.toml | ||
charts/ | ||
NOTICE | ||
LICENSE | ||
README.md |
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,27 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
*.png | ||
|
||
# known compile time folders | ||
target/ | ||
node_modules/ | ||
vendor/ |
Large diffs are not rendered by default.
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,86 @@ | ||
pipeline { | ||
agent { | ||
label "jenkins-python" | ||
} | ||
environment { | ||
ORG = 'gitcoinco' | ||
APP_NAME = 'web' | ||
CHARTMUSEUM_CREDS = credentials('jenkins-x-chartmuseum') | ||
} | ||
stages { | ||
stage('CI Build and push snapshot') { | ||
when { | ||
branch 'PR-2393' | ||
} | ||
environment { | ||
PREVIEW_VERSION = "0.0.0-SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER" | ||
PREVIEW_NAMESPACE = "$APP_NAME-$BRANCH_NAME".toLowerCase() | ||
HELM_RELEASE = "$PREVIEW_NAMESPACE".toLowerCase() | ||
} | ||
steps { | ||
container('python') { | ||
sh 'export VERSION=$PREVIEW_VERSION && skaffold build -f skaffold.yaml' | ||
|
||
|
||
sh "jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:$PREVIEW_VERSION" | ||
} | ||
|
||
dir ('./charts/preview') { | ||
container('python') { | ||
sh "make preview" | ||
sh "jx preview --app $APP_NAME --dir ../.." | ||
} | ||
} | ||
} | ||
} | ||
stage('Build Release') { | ||
when { | ||
branch 'master' | ||
} | ||
steps { | ||
container('python') { | ||
// ensure we're not on a detached head | ||
sh "git checkout master" | ||
sh "git config --global credential.helper store" | ||
|
||
sh "jx step git credentials" | ||
// so we can retrieve the version in later steps | ||
sh "echo \$(jx-release-version) > VERSION" | ||
} | ||
dir ('./charts/web') { | ||
container('python') { | ||
sh "make tag" | ||
} | ||
} | ||
container('python') { | ||
sh 'export VERSION=`cat VERSION` && skaffold build -f skaffold.yaml' | ||
|
||
sh "jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:\$(cat VERSION)" | ||
} | ||
} | ||
} | ||
stage('Promote to Environments') { | ||
when { | ||
branch 'master' | ||
} | ||
steps { | ||
dir ('./charts/web') { | ||
container('python') { | ||
sh 'jx step changelog --version v\$(cat ../../VERSION)' | ||
|
||
// release the helm chart | ||
sh 'jx step helm release' | ||
|
||
// promote through all 'Auto' promotion Environments | ||
sh 'jx promote -b --all-auto --timeout 1h --version \$(cat ../../VERSION)' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} |
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,12 @@ | ||
approvers: | ||
- gc-jenkins-x | ||
- mbeacom | ||
- owocki | ||
- thelostone-mc | ||
- SaptakS | ||
reviewers: | ||
- gc-jenkins-x | ||
- mbeacom | ||
- owocki | ||
- thelostone-mc | ||
- SaptakS |
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,18 @@ | ||
aliases: | ||
- gc-jenkins-x | ||
- mbeacom | ||
- owocki | ||
- thelostone-mc | ||
- SaptakS | ||
best-approvers: | ||
- gc-jenkins-x | ||
- mbeacom | ||
- owocki | ||
- thelostone-mc | ||
- SaptakS | ||
best-reviewers: | ||
- gc-jenkins-x | ||
- mbeacom | ||
- owocki | ||
- thelostone-mc | ||
- SaptakS |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.