gitea actions
This commit is contained in:
parent
4f4b1d8f68
commit
cc0782574a
6
build.sh
6
build.sh
|
@ -1,4 +1,4 @@
|
||||||
docker build . -t rose-ash-ghost
|
docker build . -t rose-ash-ghost:$1
|
||||||
docker build mysql -t rose-ash-mysql
|
docker build mysql -t rose-ash-mysql:$1
|
||||||
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token
|
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token:$1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
docker stack rm rose-ash
|
export VERSION=$1
|
||||||
. ./.env
|
export NODE=$3
|
||||||
export NODE=$1
|
docker stack rm $2
|
||||||
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml rose-ash && break ; done
|
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml $2 --with-registry-auth && break ; done
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
version: "3.3"
|
version: "3.3"
|
||||||
services:
|
services:
|
||||||
ghost:
|
ghost:
|
||||||
image: rose-ash-ghost:latest
|
image: registry.rose-ash.com/rose-ash-ghost:${VERSION}
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -21,7 +21,7 @@ services:
|
||||||
constraints: [node.labels.node == $NODE ]
|
constraints: [node.labels.node == $NODE ]
|
||||||
|
|
||||||
invite-token:
|
invite-token:
|
||||||
image: invite-token
|
image: registry.rose-ash.com/invite-token:${VERSION}
|
||||||
environment:
|
environment:
|
||||||
MYSQL_USER: ghost
|
MYSQL_USER: ghost
|
||||||
MYSQL_PASSWORD: ghostdbpass
|
MYSQL_PASSWORD: ghostdbpass
|
||||||
|
@ -39,7 +39,7 @@ services:
|
||||||
#- 3010:3002
|
#- 3010:3002
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: rose-ash-mysql:latest
|
image: registry.rose-ash.com/rose-ash-mysql:${VERSION}
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
||||||
MYSQL_USER: ghost
|
MYSQL_USER: ghost
|
||||||
|
|
Loading…
Reference in New Issue