-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding analytics BuildConfig, Updating Docs (#1822)
- Loading branch information
1 parent
810cb26
commit c3bbe4b
Showing
3 changed files
with
60 additions
and
2 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
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,54 @@ | ||
apiVersion: template.openshift.io/v1 | ||
kind: Template | ||
metadata: | ||
name: api-build-template | ||
annotations: | ||
description: "Build Configuration Template for the Analytics API " | ||
tags: "met, api, python" | ||
objects: | ||
- apiVersion: image.openshift.io/v1 | ||
kind: ImageStream | ||
metadata: | ||
name: ${APP} | ||
spec: | ||
lookupPolicy: | ||
local: false | ||
- apiVersion: build.openshift.io/v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: ${APP} | ||
labels: | ||
app: ${APP} | ||
spec: | ||
nodeSelector: null | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: '${APP}:latest' | ||
resources: {} | ||
successfulBuildsHistoryLimit: 5 | ||
failedBuildsHistoryLimit: 5 | ||
strategy: | ||
type: Docker | ||
dockerStrategy: | ||
dockerfilePath: Dockerfile | ||
postCommit: {} | ||
source: | ||
type: Git | ||
git: | ||
uri: ${GITHUB_REPO} | ||
ref: main | ||
contextDir: ${GITHUB_CONTEXT_DIR} | ||
triggers: | ||
- type: ConfigChange | ||
runPolicy: Serial | ||
parameters: | ||
- name: APP | ||
description: "The application name" | ||
value: analytics-api | ||
- name: GITHUB_REPO | ||
description: "The github repo uri" | ||
value: 'https://github.com/bcgov/met-public.git' | ||
- name: GITHUB_CONTEXT_DIR | ||
description: "The repository folder context" | ||
value: /analytics-api |
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