Merge pull request 'master' (#13) from master into dev

Reviewed-on: #13
This commit is contained in:
emmatveev 2024-11-22 01:13:54 +03:00
commit 94ae009b29
3 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,8 @@ jobs:
uses: actions/checkout@v4
with:
ref: dev
- name: prepare
run: ./run.sh
- name: deploy swarmpit
run: docker stack deploy --with-registry-auth -c ./.deploy-swarmpit/deploy-dev.yaml swarmpit
- name: deploy portainer

View File

@ -41,6 +41,8 @@ jobs:
uses: actions/checkout@v4
with:
ref: prod
- name: prepare
run: ./run.sh
- name: deploy swarmpit
run: docker stack deploy --with-registry-auth -c ./.deploy-swarmpit/deploy-prod.yaml swarmpit
- name: deploy portainer

12
run.sh Normal file
View File

@ -0,0 +1,12 @@
docker login -u mathwave -p $DOCKERHUB_PASSWORD
docker network create -d overlay --attachable swarmpit-nginx || true
docker network create -d overlay --attachable common-infra-nginx || true
docker network create -d overlay --attachable queues || true
mkdir /sprint-data/mongo || true
mkdir /sprint-data/redis || true
mkdir /sprint-data/rabbitmq || true
mkdir /sprint-data/certs || true
mkdir /sprint-data/gitea || true
chmod 777 /sprint-data/redis
chmod 777 /sprint-data/rabbitmq
chmod 777 /sprint-data/gitea