v0.1 version: added ci, container, nginx + base apigw config

This commit is contained in:
PB
2022-10-06 17:41:43 +02:00
parent 70687169f1
commit b0505bb041
12 changed files with 224 additions and 1 deletions

13
deploy/image-build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/apigw-svc"
branch=${DRONE_TAG:=$CI_COMMIT_BRANCH}
branch=$(echo $branch | grep -v /) || echo $branch ;
p1=$(echo $branch | cut -d / -f1 -s) &&
p2=$(echo $branch | cut -d / -f2 -s) &&
tag=${branch:=$p1-$p2} &&
echo "Building" $tag
docker build --rm --cache-from "$IMAGE_NAME:latest" -t "$IMAGE_NAME:latest" .

6
deploy/image-push.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/apigw-svc"
docker push "$IMAGE_NAME:latest"