gitea actions

This commit is contained in:
giles 2024-11-26 22:06:34 +00:00
parent 4f4b1d8f68
commit cc0782574a
5 changed files with 13 additions and 10 deletions

View File

View File

@ -1,4 +1,4 @@
docker build . -t rose-ash-ghost
docker build mysql -t rose-ash-mysql
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token
docker build . -t rose-ash-ghost:$1
docker build mysql -t rose-ash-mysql:$1
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token:$1

View File

@ -1,4 +1,4 @@
docker stack rm rose-ash
. ./.env
export NODE=$1
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
export VERSION=$1
export NODE=$3
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 $2 --with-registry-auth && break ; done

View File

@ -1,7 +1,7 @@
version: "3.3"
services:
ghost:
image: rose-ash-ghost:latest
image: registry.rose-ash.com/rose-ash-ghost:${VERSION}
env_file:
- ./.env
volumes:
@ -21,7 +21,7 @@ services:
constraints: [node.labels.node == $NODE ]
invite-token:
image: invite-token
image: registry.rose-ash.com/invite-token:${VERSION}
environment:
MYSQL_USER: ghost
MYSQL_PASSWORD: ghostdbpass
@ -39,7 +39,7 @@ services:
#- 3010:3002
db:
image: rose-ash-mysql:latest
image: registry.rose-ash.com/rose-ash-mysql:${VERSION}
environment:
MYSQL_ROOT_PASSWORD: mysqlrootpass
MYSQL_USER: ghost

3
push.sh Normal file
View File

@ -0,0 +1,3 @@
docker push registry.rose-ash.com/rose-ash-ghost:$1
docker push registry.rose-ash.com/invite-token:$1
docker push registry.rose-ash.com/rose-ash-mysql:$1