Skip to content
Snippets Groups Projects
Commit 6fba2abd authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Added build script

parent 8d0f4ef5
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
IMAGE=k8r.eu/justjanne/imghost
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
#!/bin/sh
IMAGE=k8r.eu/justjanne/imghost
TAGS=$(git describe --always --tags HEAD)
DEPLOYMENT=imghost-backend
POD=imghost-backend
kubectl -n imghost set image deployment/$DEPLOYMENT $POD=$IMAGE:$TAGS
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment