This repository was archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from keptn/release-0.1.1
#341 Release 0.1.1
- Loading branch information
Showing
17 changed files
with
1,589 additions
and
229 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,57 @@ | ||
sudo: true | ||
dist: xenial | ||
language: node_js | ||
node_js: | ||
- '10' | ||
services: | ||
- docker | ||
before_install: | ||
- export TZ=Europe/Vienna | ||
- IMAGE=keptn/servicenow-service | ||
- REGISTRY_USER=jbraeuer | ||
- VERSION="$(cat version | tr -d '[:space:]')" | ||
- DATE="$(date +'%Y%m%d.%H%M')" | ||
- GIT_SHA="$(git rev-parse --short HEAD)" | ||
- echo "$REGISTRY_PASSWORD" | docker login --username $REGISTRY_USER --password-stdin | ||
- REPO_URL="$(git remote get-url --all origin)" | ||
- LAST_COMMIT="$(git log -1 --oneline)" | ||
- ./writeManifest.sh | ||
- cat MANIFEST | ||
jobs: | ||
include: | ||
- stage: feature/bug | ||
if: branch =~ ^feature.*$ OR branch =~ ^bug.*$ OR branch =~ ^hotfix.*$ | ||
script: | ||
- echo $TRAVIS_BUILD_STAGE_NAME | ||
- TYPE="$(echo $TRAVIS_BRANCH | cut -d'/' -f1)" | ||
- NUMBER="$(echo $TRAVIS_BRANCH | cut -d'/' -f2)" | ||
- docker build . -t "${IMAGE}:${GIT_SHA}" | ||
- docker tag "${IMAGE}:${GIT_SHA}" "${IMAGE}:${TYPE}.${NUMBER}.${DATE}" | ||
- docker push "${IMAGE}:${GIT_SHA}" | ||
- docker push "${IMAGE}:${TYPE}.${NUMBER}.${DATE}" | ||
- stage: develop | ||
if: branch = develop AND NOT type = pull_request | ||
script: | ||
- echo $TRAVIS_BUILD_STAGE_NAME | ||
- docker build . -t "${IMAGE}:${GIT_SHA}" | ||
- docker tag "${IMAGE}:${GIT_SHA}" "${IMAGE}:${DATE}" | ||
- docker tag "${IMAGE}:${GIT_SHA}" "${IMAGE}:latest" | ||
- docker push "${IMAGE}:${GIT_SHA}" | ||
- docker push "${IMAGE}:${DATE}" | ||
- docker push "${IMAGE}:latest" | ||
- stage: release-branch | ||
if: branch =~ ^release.*$ AND NOT type = pull_request | ||
script: | ||
- echo $TRAVIS_BUILD_STAGE_NAME | ||
- docker build . -t "${IMAGE}:${GIT_SHA}" | ||
- docker tag "${IMAGE}:${GIT_SHA}" "${IMAGE}:${VERSION}.${DATE}" | ||
- docker tag "${IMAGE}:${GIT_SHA}" "${IMAGE}:${VERSION}.latest" | ||
- docker push "${IMAGE}:${GIT_SHA}" | ||
- docker push "${IMAGE}:${VERSION}.${DATE}" | ||
- docker push "${IMAGE}:${VERSION}.latest" | ||
- stage: master | ||
if: branch = master AND NOT type = pull_request | ||
script: | ||
- echo $TRAVIS_BUILD_STAGE_NAME | ||
- docker build . -t "${IMAGE}:${VERSION}" | ||
- docker push "${IMAGE}:${VERSION}" |
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,8 @@ | ||
########## | ||
branch: MANIFEST_BRANCH | ||
repository: MANIFEST_REPOSITORY | ||
commitlink: MANIFEST_REPOSITORY/commit/MANIFEST_COMMIT | ||
repolink: MANIFEST_REPOSITORY/tree/MANIFEST_COMMIT | ||
travisbuild: MANIFEST_TRAVIS_JOB_URL | ||
timestamp: MANIFEST_DATE | ||
########## |
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 |
---|---|---|
|
@@ -32,7 +32,6 @@ spec: | |
imagePullPolicy: Always | ||
env: | ||
|
||
|
||
--- | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Subscription | ||
|
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,3 +1,4 @@ | ||
#!/bin/sh | ||
|
||
kubectl delete -f config/servicenow-service.yaml --ignore-not-found | ||
kubectl apply -f config/servicenow-service.yaml |
Oops, something went wrong.