Compare commits

...

7 Commits

Author SHA1 Message Date
b6ac03b838 Merge branch 'develop'
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-12 17:51:53 +02:00
108a55c471 fixes
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-12 17:51:29 +02:00
01a2061d70 Merge branch 'develop'
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-06 20:48:22 +02:00
8a560405ec Merge branch 'develop'
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-10-06 17:56:35 +02:00
f0959b135f Merge branch 'develop'
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-06 17:50:08 +02:00
02d67c0553 Merge branch 'develop'
Some checks failed
continuous-integration/drone/push Build is failing
2022-10-06 17:46:41 +02:00
62c93a0c4c Merge pull request 'v0.1 version: added ci, container, nginx + base apigw config' (#1) from develop into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.pbiernat.dev/egommerce/apigw-service/pulls/1
2022-10-06 17:44:43 +02:00
3 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,7 @@
FROM nginx:alpine
LABEL author="Piotr Biernat"
LABEL service="api-gw"
LABEL vendor="Egommerce"
LABEL version="1.0"

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
DEPLOY_DIR := ./deploy
SRC_DIR := ./src
## DEPLOY PART
build-image-dev:
- sh ${DEPLOY_DIR}/image-build.sh dev
build-image-prod:
- sh ${DEPLOY_DIR}/image-build.sh
push-image-prod:
- sh ${DEPLOY_DIR}/image-push.sh

View File

@ -3,4 +3,14 @@
export IMAGE_NAME="git.pbiernat.dev/egommerce/apigw-svc"
docker build --rm --cache-from "$IMAGE_NAME:latest" -t "$IMAGE_NAME:latest" .
TARGET=${1:-latest}
echo "Building: $IMAGE_NAME:$TARGET"
if [ $TARGET = "dev" ]
then
docker build --rm --no-cache -t "$IMAGE_NAME:dev" . >/dev/null 2>&1
else
docker build --rm --cache-from "$IMAGE_NAME:$TARGET" -t "$IMAGE_NAME:$TARGET" . >/dev/null 2>&1
fi
echo "Done."