This commit is contained in:
Administrator 2024-11-22 01:11:23 +03:00
parent cf2ed99aee
commit 3b27b42d8d
3 changed files with 16 additions and 0 deletions

View File

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

View File

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