Skip to content

Instantly share code, notes, and snippets.

Viktor Farcic vfarcic

Block or report user

Report or block vfarcic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ksvc.yaml
{{- if .Values.knativeDeploy }}
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
{{- if .Values.service.name }}
name: {{ .Values.service.name }}
{{- else }}
name: {{ template "fullname" . }}
{{- end }}
labels:
View 16-serverless-apps.sh
NAMESPACE=$(kubectl config view \
--minify \
--output jsonpath="{..namespace}")
cd go-demo-6
git pull
git checkout extension-model-$NAMESPACE
View 17-progressive-delivery.sh
# Links to gists for creating a cluster with jx
# gke-jx.sh: https://gist.github.com/86e10c8771582c4b6a5249e9c513cd18
# eks-jx.sh: https://gist.github.com/dfaf2b91819c0618faf030e6ac536eac
# aks-jx.sh: https://gist.github.com/6e01717c398a5d034ebe05b195514060
# install.sh: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233
open "https://github.com/vfarcic/go-demo-6"
GH_USER=[...]
View Jenkinsfile
pipeline {
agent {
label "jenkins-go"
}
environment {
ORG = 'vfarcic'
APP_NAME = 'go-demo-6'
CHARTMUSEUM_CREDS = credentials('jenkins-x-chartmuseum')
}
stages {
View 15-advanced-pipelines.sh
# Links to gists for creating a serverless Jenkins X cluster
# gke-jx-serverless.sh: https://gist.github.com/a04269d359685bbd00a27643b5474ace
# eks-jx-serverless.sh: https://gist.github.com/69a4cbc65d8cb122d890add5997c463b
# aks-jx-serverless.sh: https://gist.github.com/a7cb7a28b7e84590fbb560b16a0ee98c
# install-serverless.sh: https://gist.github.com/f592c72486feb0fb1301778de08ba31d
cd go-demo-6
git pull
View Makefile
VERSION := 1.0.0
SHELL := /bin/bash
GO := GO15VENDOREXPERIMENT=1 go
NAME := go-demo-6
OS := $(shell uname)
MAIN_GO := main.go
ROOT_PACKAGE := $(GIT_PROVIDER)/vfarcic/$(NAME)
GO_VERSION := $(shell $(GO) version | sed -e 's/^[^0-9.]*\([0-9.]*\).*/\1/')
PACKAGE_DIRS := $(shell $(GO) list ./... | grep -v /vendor/)
PKGS := $(shell go list ./... | grep -v /vendor | grep -v generated)
View 14-upgrade.sh
# Links to gists for creating Jenkins X cluster
# gke-jx.sh: https://gist.github.com/86e10c8771582c4b6a5249e9c513cd18
# gke-jx-serverless.sh: https://gist.github.com/a04269d359685bbd00a27643b5474ace
# eks-jx.sh: https://gist.github.com/dfaf2b91819c0618faf030e6ac536eac
# eks-jx-serverless.sh: https://gist.github.com/69a4cbc65d8cb122d890add5997c463b
# aks-jx.sh: https://gist.github.com/6e01717c398a5d034ebe05b195514060
# aks-jx-serverless.sh: https://gist.github.com/a7cb7a28b7e84590fbb560b16a0ee98c
# install.sh: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233
# install-serverless.sh: https://gist.github.com/f592c72486feb0fb1301778de08ba31d
View jenkins-x-multi-line.yaml
buildPack: go
pipelineConfig:
pipelines:
pullRequest:
build:
preSteps:
- command: make unittest
promote:
steps:
- name: rollout
View 13-pipeline-extension-model.sh
# Links to gists for creating a serverless Jenkins X cluster
# gke-jx-serverless.sh: https://gist.github.com/a04269d359685bbd00a27643b5474ace
# eks-jx-serverless.sh: https://gist.github.com/69a4cbc65d8cb122d890add5997c463b
# aks-jx-serverless.sh: https://gist.github.com/a7cb7a28b7e84590fbb560b16a0ee98c
# install-serverless.sh: https://gist.github.com/f592c72486feb0fb1301778de08ba31d
GH_USER=[...]
jx delete application \
$GH_USER/jx-prow \
View install-serverless.sh
##############
# Upgrade jx #
##############
jx version
#####################
# Install Jenkins X #
#####################
You can’t perform that action at this time.