Commit 03bef0b7 authored by Ozoux's avatar Ozoux
Browse files

Adds deployment.

parent f746831a
Pipeline #129 failed with stages
in 30 seconds
.git
\ No newline at end of file
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- deploy
test:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --no-push
except:
- master
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- cp $DOCKER_SECRET_CONFIG /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination indiehosters/editoria-express-website:$CI_COMMIT_SHORT_SHA
only:
- master
deploy:
stage: deploy
tags:
- deploy
image:
name: lachlanevenson/k8s-kubectl
entrypoint: [""]
script:
- cat $CI_PROJECT_DIR/k8s.yml | sed "s/latest/$CI_COMMIT_SHORT_SHA/" | kubectl apply -f -
only:
- master
\ No newline at end of file
FROM unteem/nginx:1.16
COPY . /usr/src/site
CMD 'nginx'
This diff is collapsed.
......@@ -635,7 +635,6 @@ a img.alignleft {
-moz-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-o-font-smoothing: antialiased;
font-smoothing: antialiased;
text-rendering: optimizeLegibility; }
html {
......@@ -1333,8 +1332,7 @@ form#gform_1 {
.app-header__nav ul.app-header__nav-list > li,
.app-header__nav .app-header__nav-fallback > ul > li {
display: inline-block;
margin: 10px 15px;
float: left; }
margin: 10px 15px; }
.app-header__nav ul.app-header__nav-list > li:last-of-type,
.app-header__nav .app-header__nav-fallback > ul > li:last-of-type {
margin-right: 0; } }
......
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: editoria-express
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- env:
image: indiehosters/editoria-express-website:latest
imagePullPolicy: Always
name: editoria-express
ports:
- containerPort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
name: editoria-express
namespace: tryout-host
spec:
rules:
- host: editoria-express.tryout.host
http:
paths:
- backend:
serviceName: editoria-express
servicePort: http
path: /
tls:
- hosts:
- editoria-express.tryout.host
secretName: editoria-express
---
apiVersion: v1
kind: Service
metadata:
name: editoria-express
namespace: tryout-host
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment