Added dockge redeploy support

This commit is contained in:
Firq 2024-07-25 23:24:22 +02:00
parent 9fcbdebe9a
commit 722d91481c
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 17 additions and 1 deletions

View file

@ -64,3 +64,19 @@ jobs:
token: ${{ secrets.FORGEJO_TOKEN }} token: ${{ secrets.FORGEJO_TOKEN }}
tag: ${{ github.ref_name }} tag: ${{ github.ref_name }}
prerelease: true prerelease: true
auto-deploy-dockge:
needs: [ build-site ]
if: success()
runs-on: docker
container: forgejo.neshweb.net/firq/dockge-cli:0.1.1-c.2
steps:
- name: Configure Dockge CLI
run: |
dockge host '${{ vars.DOCKGE_HOST }}'
dockge login --user '${{ secrets.DOCKGE_USER }}' --password '${{ secrets.DOCKGE_CREDENTIAL }}'
- name: Check status and redeploy
run: |
dockge status fgo-ta-com-preview
dockge update fgo-ta-com-preview
dockge status fgo-ta-com-preview

View file

@ -1,7 +1,7 @@
{ {
"name": "fgo-ta-com-website", "name": "fgo-ta-com-website",
"type": "module", "type": "module",
"version": "0.2.2-pre.10", "version": "0.2.2-pre.11",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",