v0.1 version: added ci, container, nginx + base apigw config
This commit is contained in:
13
deploy/image-build.sh
Executable file
13
deploy/image-build.sh
Executable 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
6
deploy/image-push.sh
Executable 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"
|
||||
Reference in New Issue
Block a user