From be1416a74ae6b59b92d974724db49a689084d8f5 Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 20 Jul 2024 16:47:33 +0200 Subject: [PATCH] Testing Dockge CLI in CI --- .forgejo/workflows/build_preview.yml | 27 +++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build_preview.yml b/.forgejo/workflows/build_preview.yml index 7b169e6..5e061a4 100644 --- a/.forgejo/workflows/build_preview.yml +++ b/.forgejo/workflows/build_preview.yml @@ -65,6 +65,33 @@ jobs: tag: ${{ github.ref_name }} prerelease: true + auto-deploy-dockge: + needs: [ build-site ] + runs-on: docker + container: nikolaik/python-nodejs:python3.11-nodejs21 + steps: + - name: Configure pip + uses: | + 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 + - 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 + # doesn't work atm # unlighthouse: # needs: [publish] diff --git a/package.json b/package.json index 90b1841..b2ac7ca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@firq/fgosite", "type": "module", - "version": "0.2.0-pre.2", + "version": "0.2.0-pre.3", "private": true, "scripts": { "dev": "astro dev",