Re-integrate Dockge into preview workflow
All checks were successful
/ get-version (push) Successful in 3s
/ astro-check (push) Successful in 28s

This commit is contained in:
Firq 2024-07-20 18:02:22 +02:00
parent 245cac7d87
commit de68104603
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 27 additions and 58 deletions

View file

@ -65,30 +65,30 @@ jobs:
tag: ${{ github.ref_name }} tag: ${{ github.ref_name }}
prerelease: true prerelease: true
# auto-deploy-dockge: auto-deploy-dockge:
# needs: [ build-site ] needs: [ build-site ]
# runs-on: docker if: success()
# if: success() runs-on: docker
# container: nikolaik/python-nodejs:python3.11-nodejs21 container: nikolaik/python-nodejs:python3.11-nodejs21
# steps: steps:
# - name: Configure pip - name: Configure pip
# run: | run: |
# pip config set global.index-url https://pypi.org/simple 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.extra-index-url https://forgejo.neshweb.net/api/packages/Firq/pypi/simple/
# pip config set global.timeout 60 pip config set global.timeout 60
# pip config set global.trusted-host "pypi.org forgejo.neshweb.net" pip config set global.trusted-host "pypi.org forgejo.neshweb.net"
# - name: Install Dockge CLI - name: Install Dockge CLI
# run: pip install dockge-cli run: pip install dockge-cli==0.1.1-c.1
# - name: Configure Dockge CLI - name: Configure Dockge CLI
# run: | run: |
# dockge host https://dockge.firq.dev dockge host https://dockge.firq.dev
# dockge login --user ${{ secrets.DOCKGE_USER }} --password ${{ secrets.DOCKGE_CREDENTIAL }} dockge login --user '${{ secrets.DOCKGE_USER }}' --password '${{ secrets.DOCKGE_CREDENTIAL }}'
# - name: Check status and redeploy - name: Check status and redeploy
# run: | run: |
# dockge status firq-dev-preview dockge status firq-dev-preview
# dockge update firq-dev-preview dockge update firq-dev-preview
# dockge status firq-dev-preview dockge status firq-dev-preview
# - name: Reset CLI - name: Reset CLI
# run : | run : |
# dockge logout dockge logout
# dockge exit dockge exit

View file

@ -1,31 +0,0 @@
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