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
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:
commit
25137c6923
@ -23,19 +23,36 @@ jobs:
|
|||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: https://github.com/actions/checkout@v3
|
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: |
|
run: |
|
||||||
|
cd kdb-bot
|
||||||
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
||||||
|
cpl i
|
||||||
|
|
||||||
- name: Install deps
|
- name: Build docker bot
|
||||||
run: cpl i
|
|
||||||
|
|
||||||
- name: Build docker
|
|
||||||
run: |
|
run: |
|
||||||
docker stack rm service_observer
|
cd kdb-bot
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
cpl docker-build
|
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
|
- name: Deploy Stack to sh-edraft.de
|
||||||
uses: https://github.com/kgierke/portainer-stack-deployment@v1
|
uses: https://github.com/kgierke/portainer-stack-deployment@v1
|
||||||
with:
|
with:
|
||||||
@ -43,6 +60,6 @@ jobs:
|
|||||||
portainer-username: "gitea_job"
|
portainer-username: "gitea_job"
|
||||||
portainer-password: "${{ secrets.docker_job }}"
|
portainer-password: "${{ secrets.docker_job }}"
|
||||||
portainer-endpoint: 2
|
portainer-endpoint: 2
|
||||||
name: service_observer
|
name: kdb_prod
|
||||||
file: ./docker-compose.yml
|
file: ./docker-compose.yml
|
||||||
variables: '{}'
|
variables: '{}'
|
||||||
|
Loading…
Reference in New Issue
Block a user