Compare commits
	
		
			3 Commits
		
	
	
		
			d982d81d5f
			...
			v0.5.3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 878107623e | |||
| fa6e9ea3b7 | |||
| f19de98b4c | 
@@ -49,7 +49,7 @@ steps:
 | 
				
			|||||||
    curl \
 | 
					    curl \
 | 
				
			||||||
      --header "Authorization: token $GIT_APIKEY" \
 | 
					      --header "Authorization: token $GIT_APIKEY" \
 | 
				
			||||||
      --upload-file json-server-$CHART_VERSION.tgz \
 | 
					      --upload-file json-server-$CHART_VERSION.tgz \
 | 
				
			||||||
      https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/json-server/$CHART_VERSION/json-server-$CHART_VERSION.tgz
 | 
					      https://code.spamasaurus.com/api/packages/$GIT_USERNAME/helm/api/charts
 | 
				
			||||||
  environment:
 | 
					  environment:
 | 
				
			||||||
    GIT_APIKEY:
 | 
					    GIT_APIKEY:
 | 
				
			||||||
      from_secret: git_apikey
 | 
					      from_secret: git_apikey
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,8 @@
 | 
				
			|||||||
FROM node:latest
 | 
					FROM node:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN npm install -g json-server
 | 
					RUN npm install -g --no-optional --omit=dev \
 | 
				
			||||||
 | 
					      json-server && \
 | 
				
			||||||
 | 
					    npm cache clean --force
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY init/entrypoint.sh /opt/entrypoint.sh
 | 
					COPY init/entrypoint.sh /opt/entrypoint.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,10 +6,10 @@ type: application
 | 
				
			|||||||
# This is the chart version. This version number should be incremented each time you make changes
 | 
					# This is the chart version. This version number should be incremented each time you make changes
 | 
				
			||||||
# to the chart and its templates, including the app version.
 | 
					# to the chart and its templates, including the app version.
 | 
				
			||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
 | 
					# Versions are expected to follow Semantic Versioning (https://semver.org/)
 | 
				
			||||||
version: v0.5.1
 | 
					version: v0.5.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This is the version number of the application being deployed. This version number should be
 | 
					# This is the version number of the application being deployed. This version number should be
 | 
				
			||||||
# incremented each time you make changes to the application. Versions are not expected to
 | 
					# incremented each time you make changes to the application. Versions are not expected to
 | 
				
			||||||
# follow Semantic Versioning. They should reflect the version the application is using.
 | 
					# follow Semantic Versioning. They should reflect the version the application is using.
 | 
				
			||||||
# It is recommended to use it with quotes.
 | 
					# It is recommended to use it with quotes.
 | 
				
			||||||
appVersion: "v0.5.1"
 | 
					appVersion: "v0.5.3"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,56 @@ kind: ConfigMap
 | 
				
			|||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: {{ .Release.Name }}-configmap
 | 
					  name: {{ .Release.Name }}-configmap
 | 
				
			||||||
data:
 | 
					data:
 | 
				
			||||||
 | 
					  index.html: |
 | 
				
			||||||
 | 
					    <html>
 | 
				
			||||||
 | 
					      <head>
 | 
				
			||||||
 | 
					        <link
 | 
				
			||||||
 | 
					          rel="stylesheet"
 | 
				
			||||||
 | 
					          href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
 | 
				
			||||||
 | 
					          integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
 | 
				
			||||||
 | 
					          crossorigin="anonymous"
 | 
				
			||||||
 | 
					        />
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="style.css" />
 | 
				
			||||||
 | 
					        <title>JSON Server</title>
 | 
				
			||||||
 | 
					      </head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <body>
 | 
				
			||||||
 | 
					        <header>
 | 
				
			||||||
 | 
					          <div class="container">
 | 
				
			||||||
 | 
					            <nav>
 | 
				
			||||||
 | 
					              <ul>
 | 
				
			||||||
 | 
					                <li class="title">
 | 
				
			||||||
 | 
					                  JSON Server
 | 
				
			||||||
 | 
					                </li>
 | 
				
			||||||
 | 
					              </ul>
 | 
				
			||||||
 | 
					            </nav>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </header>
 | 
				
			||||||
 | 
					        <main>
 | 
				
			||||||
 | 
					          <div class="container">
 | 
				
			||||||
 | 
					            <h1>Congrats!</h1>
 | 
				
			||||||
 | 
					            <p>
 | 
				
			||||||
 | 
					              You're successfully running JSON Server
 | 
				
			||||||
 | 
					              <br />
 | 
				
			||||||
 | 
					              ✧*。٩(ˊᗜˋ*)و✧*。
 | 
				
			||||||
 | 
					            </p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <div id="resources"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </main>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <footer>
 | 
				
			||||||
 | 
					          <div class="container">
 | 
				
			||||||
 | 
					            <p>
 | 
				
			||||||
 | 
					              Howdy mates!
 | 
				
			||||||
 | 
					            </p>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </footer>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <script src="script.js"></script>
 | 
				
			||||||
 | 
					      </body>
 | 
				
			||||||
 | 
					    </html>
 | 
				
			||||||
  db.json: |
 | 
					  db.json: |
 | 
				
			||||||
{{ include "common.tplvalues.render" ( dict "value" .Values.seedData.configInline "context" $) | indent 4 }}
 | 
					{{ include "common.tplvalues.render" ( dict "value" .Values.seedData.configInline "context" $) | indent 4 }}
 | 
				
			||||||
{{- end -}}
 | 
					{{- end -}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,6 +49,9 @@ spec:
 | 
				
			|||||||
          - name: {{ .Release.Name }}-configmap
 | 
					          - name: {{ .Release.Name }}-configmap
 | 
				
			||||||
            mountPath: /data/db.json
 | 
					            mountPath: /data/db.json
 | 
				
			||||||
            subPath: db.json
 | 
					            subPath: db.json
 | 
				
			||||||
 | 
					          - name: {{ .Release.Name }}-configmap
 | 
				
			||||||
 | 
					            mountPath: /usr/local/lib/node_modules/json-server/public/index.html
 | 
				
			||||||
 | 
					            subPath: index.html
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
      - name: {{ .Release.Name }}-configmap
 | 
					      - name: {{ .Release.Name }}-configmap
 | 
				
			||||||
        configMap:
 | 
					        configMap:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user