Merge pull request 'Fixed action' (#373) from support into master
All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 3m58s

Reviewed-on: sh-edraft.de/kd_discord_bot#373
This commit is contained in:
Sven Heidemann 2023-09-27 20:59:21 +02:00
commit 25137c6923

View File

@ -23,19 +23,36 @@ jobs:
- name: Clone Repository
uses: https://github.com/actions/checkout@v3
- name: Install cpl cli
- name: Shutdown stack
run: docker stack rm kdb_prod
- name: Prepare bot build
run: |
cd kdb-bot
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
cpl i
- name: Install deps
run: cpl i
- name: Build docker
- name: Build docker bot
run: |
docker stack rm service_observer
cd kdb-bot
docker image prune -f
cpl docker-build
- name: Setup node
uses: https://github.com/actions/setup-node@v3
- name: Prepare web build
run: |
cd kdb-web
npm install -g ts-node
npm i
- name: Build docker web
run: |
cd kdb-web
docker image prune -f
npm run docker-build
- name: Deploy Stack to sh-edraft.de
uses: https://github.com/kgierke/portainer-stack-deployment@v1
with:
@ -43,6 +60,6 @@ jobs:
portainer-username: "gitea_job"
portainer-password: "${{ secrets.docker_job }}"
portainer-endpoint: 2
name: service_observer
name: kdb_prod
file: ./docker-compose.yml
variables: '{}'