Compare commits
2 commits
1c192c41fd
...
df38c96e04
Author | SHA1 | Date | |
---|---|---|---|
Micke Nordin | df38c96e04 | ||
Micke Nordin | 58d2c2110f |
56
bump-tag
Executable file
56
bump-tag
Executable file
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
test -f cosmos.conf && . ./cosmos.conf
|
||||||
|
|
||||||
|
echo "Fetching any updates from server:"
|
||||||
|
git pull
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
if [ "x$1" = "x" ]; then
|
||||||
|
deftag=`basename $PWD`
|
||||||
|
else
|
||||||
|
deftag="$1"
|
||||||
|
fi
|
||||||
|
tagpfx=${tag:="$deftag"}
|
||||||
|
|
||||||
|
last_tag=`git tag -l "${tagpfx}-*"|sort|tail -1`
|
||||||
|
|
||||||
|
echo "Verifying last tag $last_tag:"
|
||||||
|
(git tag -v $last_tag | grep ^gpg:) || true
|
||||||
|
# again to not mask exit status of git with grep
|
||||||
|
git tag -v $last_tag > /dev/null 2>&1
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "Differences between tag $last_tag and what you are about to sign:"
|
||||||
|
PAGER=cat git diff --color $last_tag..main
|
||||||
|
|
||||||
|
iter=1
|
||||||
|
ok=
|
||||||
|
while test -z "$ok"; do
|
||||||
|
this_tag=$(date +${tagpfx}-%Y-%m-%d-v`printf "%02d" $iter`)
|
||||||
|
iter=`expr $iter + 1`
|
||||||
|
case `(echo $this_tag; echo $last_tag) | sort | tail -1` in
|
||||||
|
$last_tag)
|
||||||
|
;;
|
||||||
|
$this_tag)
|
||||||
|
ok=yes
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$deftag" != "$tagpfx" ]; then
|
||||||
|
echo -e "Using new tag \e[94m$this_tag\e[0m according to pattern in cosmos.conf"
|
||||||
|
else
|
||||||
|
echo -e "Using new tag \e[94m$this_tag\e[0m"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\e[1mONLY SIGN IF YOU APPROVE OF VERIFICATION AND DIFF ABOVE\e[0m"
|
||||||
|
|
||||||
|
# GITTAGEXTRA is for putting things like "-u 2117364A"
|
||||||
|
|
||||||
|
git tag $GITTAGEXTRA -m bump. -s $this_tag
|
||||||
|
|
||||||
|
git push
|
||||||
|
git push --tags
|
7
customers/overlays/vinnova/test/kustomization.yaml
Normal file
7
customers/overlays/vinnova/test/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: 'kustomize.config.k8s.io/v1beta1'
|
||||||
|
kind: Kustomization
|
||||||
|
bases:
|
||||||
|
- ../../../base
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- nextcloud-deployment.yml
|
||||||
|
- nextcloud-ingress.yml
|
34
customers/overlays/vinnova/test/nextcloud-deployment.yml
Normal file
34
customers/overlays/vinnova/test/nextcloud-deployment.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: customer-node
|
||||||
|
labels:
|
||||||
|
app: customer-node
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: customer-node
|
||||||
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
|
name: init-config
|
||||||
|
env:
|
||||||
|
- name: MYSQL_DATABASE
|
||||||
|
value: "nextcloud_vinnova"
|
||||||
|
- name: MYSQL_USER
|
||||||
|
value: "nextcloud_vinnova"
|
||||||
|
- name: GSS_MASTER_URL
|
||||||
|
value: "https://drive.test.sunet.se"
|
||||||
|
- name: LOOKUP_SERVER
|
||||||
|
value: "https://lookup.drive.test.sunet.se"
|
||||||
|
- name: MAIL_DOMAIN
|
||||||
|
value: "drive.test.sunet.se"
|
||||||
|
- name: MAIL_SMTPNAME
|
||||||
|
value: "noreply@drive.test.sunet.se"
|
||||||
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
||||||
|
value: "vinnova.drive.test.sunet.se"
|
||||||
|
- name: OBJECTSTORE_S3_BUCKET
|
||||||
|
value: "primary-vinnova-drive-test.sunet.se"
|
||||||
|
- name: SITE_NAME
|
||||||
|
value: "vinnova.drive.test.sunet.se"
|
26
customers/overlays/vinnova/test/nextcloud-ingress.yml
Normal file
26
customers/overlays/vinnova/test/nextcloud-ingress.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: customer-ingress
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: traefik
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- vinnova.drive.test.sunet.se
|
||||||
|
secretName: tls-secret
|
||||||
|
|
||||||
|
rules:
|
||||||
|
- host: vinnova.drive.test.sunet.se
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: customer-node
|
||||||
|
port:
|
||||||
|
number: 80
|
Loading…
Reference in a new issue