ci/cd test

This commit is contained in:
PB
2022-10-06 20:10:05 +02:00
parent 57ed28d14b
commit dc58c80074
23 changed files with 354 additions and 33 deletions

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

@@ -0,0 +1,6 @@
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/identity-svc"
docker build --rm --cache-from "$IMAGE_NAME:latest" -t "$IMAGE_NAME:latest" .

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

@@ -0,0 +1,7 @@
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/identity-svc"
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
docker push "$IMAGE_NAME:latest"