scripts to build and deploy to dockerhub

This commit is contained in:
Artem Titoulenko 2021-12-24 14:51:54 -05:00
parent 10cc9c05c4
commit 7641783130
4 changed files with 14 additions and 2 deletions

View file

@ -1,2 +1,3 @@
Dockerfile Dockerfile
node_modules node_modules
scripts

View file

@ -3,11 +3,11 @@
- uin: 1 - uin: 1
username: toof username: toof
password: bar password: bar
email: toof@plot.club email: toof@example.com
- uin: 2 - uin: 2
username: artem username: artem
password: bar password: bar
email: artem@plot.club email: artem@example.com
- model: Message - model: Message
rows: [] rows: []
- model: Buddy - model: Buddy

6
scripts/build-docker.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
COMMIT="$(git rev-parse --short HEAD)"
TAG="space4llamas/aim:$COMMIT"
set -x
docker build -t $TAG .

5
scripts/deploy-dockerhub.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
COMMIT="$(git rev-parse --short HEAD)"
set -x
docker push space4llamas/aim:$COMMIT