Added dockge redeploy support
All checks were successful
/ astro-check (push) Successful in 12s
/ check-tag (push) Successful in 2s
/ checking (push) Successful in 12s
/ auto-deploy-dockge (push) Successful in 18s
/ create-release (push) Successful in 39s
/ build-site (push) Successful in 1m7s

This commit is contained in:
Firq 2024-07-25 23:24:22 +02:00
parent 9fcbdebe9a
commit e28c7e066d
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",