-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deploy storybook
- Loading branch information
Alex Page
committed
Jun 11, 2021
1 parent
053b68d
commit 2c6e842
Showing
14 changed files
with
332 additions
and
70 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 |
---|---|---|
@@ -1,12 +1,6 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
push: | ||
branches: | ||
- 'main' | ||
on: push | ||
|
||
jobs: | ||
test: | ||
|
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,11 @@ | ||
containers: | ||
production: | ||
environment: production | ||
build: | ||
from: ubuntu-latest | ||
run: | ||
- yarn build | ||
- yarn storybook:build | ||
|
||
steps: | ||
- build: production |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: npm run start |
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,6 @@ | ||
{ | ||
"_public_key": "f63e73fbf778d8f5b92a3fa44799260d7d81bd6c700f76f2d312e286816dae29", | ||
"environment": { | ||
"SECRET_KEY_BASE": "EJ[1:+cU3KIIWBzkrJI3ibAYa6q6uOYLaCPC7CHEXcrtzOEE=:pNbSr/8NCLPtaMTCbUvnm04zEcxH1tdh:bj0FeILvtYd/NdnMnYqTCPED35mr02IrlgN2+6aHmtREiSqXWdu+Sre1jnpQ+W2+iCBGX4xdr+JZUoviIrDxS+IDuIMNxoIQF4i59V/38YMFMyqSsCakwZH+SOPgHOtSvHulgRQiTmmfSI1HHwHlgmmPWKrqCoJNhbRcQHGkJk8GLjpDRm2SyHqd/wsELUZu]" | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
infrastructure/runtimes/production-unrestricted-4b2e/manifest.yaml
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,20 @@ | ||
--- | ||
kind: RuntimeManifest | ||
apiVersion: platform.shopify.io/v1alpha1 | ||
metadata: | ||
name: production-unrestricted-4b2e | ||
runtimeInfo: | ||
appName: polaris-react | ||
env: production | ||
appImage: gcr.io/shopify-docker-images/apps/production/polaris-react | ||
domains: | ||
- polaris-react.shopifycloud.com | ||
defaultBaseSource: github:Shopify/k8s_base/components | ||
components: | ||
- name: web | ||
basePath: web/v10 | ||
resources: | ||
- base: ingress.yaml | ||
- base: certificate.yaml | ||
- base: service.yaml | ||
- base: deployment.yaml |
210 changes: 210 additions & 0 deletions
210
infrastructure/runtimes/production-unrestricted-4b2e/manifest.yaml.lock
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,210 @@ | ||
# THIS FILE IS AUTO-GENERATED. DO NOT MODIFY IT MANUALLY. | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: web | ||
labels: | ||
name: web | ||
env: production | ||
app: polaris-react | ||
runtime-component: web | ||
annotations: | ||
platform.shopify.io/app-containers: web | ||
shipit.shopify.io/restart: "true" | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
name: web | ||
template: | ||
metadata: | ||
labels: | ||
name: web | ||
env: production | ||
app: polaris-react | ||
annotations: | ||
seccomp.security.alpha.kubernetes.io/pod: runtime/default | ||
spec: | ||
automountServiceAccountToken: true | ||
containers: | ||
- name: web | ||
image: gcr.io/shopify-docker-images/apps/production/polaris-react | ||
args: | ||
- web | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
envFrom: | ||
- configMapRef: | ||
name: application-state | ||
env: | ||
- name: ENV | ||
value: production | ||
- name: APP_ENV | ||
value: production | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: NODE_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: TRACE_PROXY_ADDR | ||
value: http://$(NODE_IP):8096/ | ||
- name: STATSD_ADDR | ||
value: 127.0.0.1:8125 | ||
- name: STATSD_IMPLEMENTATION | ||
value: datadog | ||
- name: PORT | ||
value: "8000" | ||
- name: IDENTITY_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: identity-config | ||
key: clientId | ||
optional: true | ||
- name: IDENTITY_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: identity-config | ||
key: clientSecret | ||
optional: true | ||
- name: KAFKA_CLIENT_CERT | ||
value: /ssl/kafka-client/tls.crt | ||
- name: KAFKA_CLIENT_KEY | ||
value: /ssl/kafka-client/tls.key | ||
- name: KAFKA_CLOUD_AGGREGATE_CLIENT_CERT | ||
value: /ssl/kafka-client/tls.crt | ||
- name: KAFKA_CLOUD_AGGREGATE_CLIENT_KEY | ||
value: /ssl/kafka-client/tls.key | ||
- name: KAFKA_AGGREGATE_BROKERS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: kafka-clusters | ||
key: cloud-aggregate | ||
- name: KAFKA_REGIONAL_BROKERS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: kafka-clusters | ||
key: local | ||
- name: KAFKA_CLIENT_ID | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 1Gi | ||
requests: | ||
cpu: 200m | ||
memory: 512Mi | ||
volumeMounts: | ||
- name: ejson-keys | ||
readOnly: true | ||
mountPath: /key | ||
- name: kafka-client | ||
readOnly: true | ||
mountPath: /ssl/kafka-client | ||
readinessProbe: | ||
httpGet: | ||
port: 8000 | ||
httpHeaders: | ||
- name: X-Forwarded-Proto | ||
value: https | ||
path: /services/ping | ||
initialDelaySeconds: 20 | ||
timeoutSeconds: 3 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
add: | ||
- CHOWN | ||
- DAC_OVERRIDE | ||
- KILL | ||
- SETGID | ||
- SETUID | ||
drop: | ||
- ALL | ||
privileged: false | ||
volumes: | ||
- name: kafka-client | ||
secret: | ||
secretName: kafka-client | ||
- name: ejson-keys | ||
secret: | ||
secretName: ejson-keys | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
progressDeadlineSeconds: 120 | ||
--- | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Certificate | ||
metadata: | ||
name: web | ||
labels: | ||
env: production | ||
app: polaris-react | ||
runtime-component: web | ||
spec: | ||
acme: | ||
config: | ||
- domains: | ||
- polaris-react.shopifycloud.com | ||
http01: | ||
ingressClass: nginx | ||
dnsNames: | ||
- polaris-react.shopifycloud.com | ||
issuerRef: | ||
name: letsencrypt-issuer | ||
kind: ClusterIssuer | ||
secretName: polaris-react-shopifycloud-com | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: web | ||
labels: | ||
name: web | ||
env: production | ||
app: polaris-react | ||
runtime-component: web | ||
annotations: | ||
ingress.shopify.io/tls-secretbuddy: "false" | ||
kubernetes.io/ingress.class: nginx | ||
kubernetes.io/tls-acme: "false" | ||
security.shopify.io/auth: oauth2 | ||
spec: | ||
rules: | ||
- host: polaris-react.shopifycloud.com | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: web | ||
servicePort: 80 | ||
tls: | ||
- hosts: | ||
- polaris-react.shopifycloud.com | ||
secretName: polaris-react-shopifycloud-com | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: web | ||
labels: | ||
name: web | ||
env: production | ||
app: polaris-react | ||
runtime-component: web | ||
spec: | ||
selector: | ||
name: web | ||
env: production | ||
app: polaris-react | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 8000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ci: | ||
require: | ||
- 'Test' | ||
- 'Accessibility test' | ||
|
||
merge: | ||
require: | ||
- 'Test' | ||
- 'Accessibility test' | ||
|
||
deploy: | ||
max_commits: false |
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,12 +1,7 @@ | ||
production_platform: | ||
application: polaris-react | ||
runtime_ids: | ||
- production-unrestricted-4b2e | ||
ci: | ||
require: | ||
- 'Test' | ||
- 'Accessibility test' | ||
|
||
merge: | ||
require: | ||
- 'Test' | ||
- 'Accessibility test' | ||
|
||
deploy: | ||
max_commits: false | ||
- buildkite/polaris-react-production-builder |
Oops, something went wrong.