All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 3m27s
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: Deploy dev on push
|
|
run-name: Deploy dev on push
|
|
on:
|
|
push:
|
|
branches:
|
|
- support
|
|
|
|
jobs:
|
|
on-push-deploy_sh-edraft:
|
|
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Setup Python 3.10
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.10.12"
|
|
- run: python -v
|
|
|
|
- name: Setup docker
|
|
uses: https://github.com/papodaca/install-docker-action@main
|
|
- run: docker -v
|
|
|
|
- name: Clone Repository
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Shutdown stack
|
|
run: docker stack rm kdb_staging
|
|
|
|
- name: Prepare bot build
|
|
run: |
|
|
cd kdb-bot
|
|
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
|
cpl i
|
|
|
|
- name: Build docker bot
|
|
run: |
|
|
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:
|
|
portainer-url: "https://docker.sh-edraft.de"
|
|
portainer-username: "gitea_job"
|
|
portainer-password: "$T8bS5;ge_(q<B9e^:9W4}=)"
|
|
portainer-endpoint: 2
|
|
name: kdb_staging
|
|
file: ./docker-compose.staging.yml
|
|
variables: '{}'
|