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
# Default values for node-starter. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
replicaCount: 1 | |
image: | |
repository: fabripautasso/node-starter-v2 | |
tag: 1.17.0 | |
pullPolicy: IfNotPresent |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ include "node-starter.fullname" . }} | |
labels: | |
{{- include "node-starter.labels" . | nindent 4 }} | |
spec: | |
replicas: {{ .Values.replicaCount }} | |
selector: | |
matchLabels: |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: api | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
role: 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: api | |
spec: | |
type: NodePort | |
ports: | |
- port: 80 | |
targetPort: 3030 | |
nodePort: 30000 |
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
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: development |
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
build: | |
docker: | |
- image: circleci/node:10.10.0-stretch-browsers-legacy | |
working_directory: ~/repo | |
steps: | |
- checkout | |
- attach_workspace: | |
at: ~/repo | |
- run: | |
name: Build |
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
workflows: | |
version: 2 | |
test-build-deploy: | |
jobs: | |
- npm | |
- lint: | |
requires: | |
- npm | |
- build: |
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
deploy-dev: | |
machine: true | |
steps: | |
- checkout | |
- run: | |
name: Build and push Docker image to Heroku | |
command: | | |
sudo curl https://cli-assets.heroku.com/install.sh | sh | |
HEROKU_API_KEY=${HEROKU_TOKEN} heroku container:login | |
HEROKU_API_KEY=${HEROKU_TOKEN} heroku container:push -a python-django-starter web |
NewerOlder