Skip to content

Instantly share code, notes, and snippets.

@evanshortiss
Created August 7, 2020 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanshortiss/9fe7ab198782bd4cb5a3f2ff73f4dde2 to your computer and use it in GitHub Desktop.
Save evanshortiss/9fe7ab198782bd4cb5a3f2ff73f4dde2 to your computer and use it in GitHub Desktop.
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: webapp-nginx-runtime
name: webapp-nginx-runtime
namespace: node-s2i-nginx
spec:
failedBuildsHistoryLimit: 5
successfulBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: webapp-nginx-runtime:latest
runPolicy: Serial
source:
images:
- from:
kind: ImageStreamTag
name: webapp-npm-build:latest
namespace: node-s2i-nginx
paths:
- destinationDir: .
sourcePath: /opt/app-root/src/dist/.
type: Image
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: nginx-116:latest
type: Source
triggers:
- github:
secret: H_FeaU5GHzn_3qBHh5Rj
type: GitHub
- generic:
secret: Mz-V_nVS99v_KLSuGQuU
type: Generic
- imageChange:
from:
kind: ImageStreamTag
name: webapp-npm-build:latest
namespace: node-s2i-nginx
lastTriggeredImageID: image-registry.openshift-image-registry.svc:5000/node-s2i-nginx/webapp-npm-build@sha256:d94fd713054424652a69b051b203637399fb27f45a564cbf592eaabc1eafdacd
type: ImageChange
- type: ConfigChange
- imageChange:
lastTriggeredImageID: registry.redhat.io/rhel8/nginx-116@sha256:8ba23c79c79b0e218ba72b3180424c1e300134375a4fd7eff532015b3b2fdf0d
type: ImageChange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment