From 7a425c4fda2203358b41a2f300793932208537ed Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 20 Jul 2024 17:54:14 +0200 Subject: [PATCH] Dockge Test --- .forgejo/workflows/test_dockge.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/test_dockge.yml diff --git a/.forgejo/workflows/test_dockge.yml b/.forgejo/workflows/test_dockge.yml new file mode 100644 index 0000000..1fec240 --- /dev/null +++ b/.forgejo/workflows/test_dockge.yml @@ -0,0 +1,31 @@ +on: + push: + branches: + - '**' + +jobs: + auto-deploy-dockge: + runs-on: docker + container: nikolaik/python-nodejs:python3.11-nodejs21 + steps: + - name: Configure pip + run: | + pip config set global.index-url https://pypi.org/simple + pip config set global.extra-index-url https://forgejo.neshweb.net/api/packages/Firq/pypi/simple/ + pip config set global.timeout 60 + pip config set global.trusted-host "pypi.org forgejo.neshweb.net" + - name: Install Dockge CLI + run: pip install dockge-cli==0.1.1-c.1 + - name: Configure Dockge CLI + run: | + dockge host https://dockge.firq.dev + dockge login --user ${{ secrets.DOCKGE_USER }} --password ${{ secrets.DOCKGE_CREDENTIAL }} + - name: Check status and redeploy + run: | + dockge status firq-dev-preview + dockge update firq-dev-preview + dockge status firq-dev-preview + - name: Reset CLI + run : | + dockge logout + dockge exit