diff --git a/.gitea/workflows/deploy_prod.yaml b/.gitea/workflows/deploy_prod.yaml index 4406bb86..08273018 100644 --- a/.gitea/workflows/deploy_prod.yaml +++ b/.gitea/workflows/deploy_prod.yaml @@ -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: '{}'