Testing Dockge CLI in CI
Some checks failed
/ get-version (push) Successful in 2s
/ astro-check (push) Successful in 12s
/ checking (push) Successful in 11s
/ check-tag (push) Successful in 2s
/ create-release (push) Successful in 6s
/ build-site (push) Successful in 2m58s
/ auto-deploy-dockge (push) Failing after 0s

This commit is contained in:
Firq 2024-07-20 16:47:33 +02:00
parent 1cee0efcad
commit be1416a74a
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 28 additions and 1 deletions

View file

@ -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]

View file

@ -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",