From 73f14bafd1632f2a71c278d608350ad201a43383 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Mar 2018 01:49:22 +0100 Subject: [PATCH] Minor fixes, added build script --- assets/sass/style.sass | 4 ++-- build.sh | 9 +++++++++ deploy.sh | 7 +++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 build.sh create mode 100755 deploy.sh diff --git a/assets/sass/style.sass b/assets/sass/style.sass index 1c1df13..a17d702 100644 --- a/assets/sass/style.sass +++ b/assets/sass/style.sass @@ -151,7 +151,7 @@ form.upload font-size: 14pt font-weight: normal color: #eee - &:empty + &:not(h2):empty display: none & + .image border-top-left-radius: 4px @@ -168,5 +168,5 @@ form.upload font-size: 11pt font-weight: normal color: #eee - &:empty + &:not(div):empty display: none \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c777096 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +IMAGE=k8r.eu/justjanne/imghost-frontend +TAGS=$(git describe --always --tags HEAD) + +docker build -t $IMAGE:$TAGS . +docker tag $IMAGE:$TAGS $IMAGE:latest +echo Successfully tagged $IMAGE:latest +docker push $IMAGE:$TAGS +docker push $IMAGE:latest \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..71d569a --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +#!/bin/sh +IMAGE=k8r.eu/justjanne/imghost-frontend +TAGS=$(git describe --always --tags HEAD) +DEPLOYMENT=imghost-frontend +POD=imghost-frontend + +kubectl -n imghost set image deployment/$DEPLOYMENT $POD=$IMAGE:$TAGS \ No newline at end of file -- GitLab