update
This commit is contained in:
@@ -1,16 +1,55 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# push:
|
workflow_dispatch:
|
||||||
# tags:
|
push:
|
||||||
# - "v[0-9]+.[0-9]+.[0-9]+"
|
tags:
|
||||||
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
|
||||||
# paths:
|
# paths:
|
||||||
# - ".gitea/workflows/deploy-client.yml"
|
# - ".gitea/workflows/deploy-client.yml"
|
||||||
# - "client/**"
|
# - "client/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-windows:
|
# publish-windows:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - name: Keyscan
|
||||||
|
# run: |
|
||||||
|
# ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
|
||||||
|
#
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# with:
|
||||||
|
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
# ssh-strict: false
|
||||||
|
# persist-credentials: false
|
||||||
|
#
|
||||||
|
# - name: Build
|
||||||
|
# run: |
|
||||||
|
# docker build \
|
||||||
|
# -t chad-client-windows-builder \
|
||||||
|
# -f ./client/Dockerfile.windows \
|
||||||
|
# ./client \
|
||||||
|
# --build-arg COMMIT_SHA=${{ gitea.sha }} \
|
||||||
|
# --build-arg API_BASE_URL=${{ vars.API_BASE_URL }} \
|
||||||
|
# --build-arg TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||||
|
#
|
||||||
|
# docker create --name chad-client-windows-container chad-client-windows-builder
|
||||||
|
# mkdir -p artifacts
|
||||||
|
# docker cp chad-client-windows-container:/artifacts artifacts/
|
||||||
|
# docker rm chad-client-windows-container
|
||||||
|
# ls -la artifacts
|
||||||
|
#
|
||||||
|
# - name: Publish
|
||||||
|
# uses: akkuman/gitea-release-action@v1
|
||||||
|
# with:
|
||||||
|
# files: |
|
||||||
|
# artifacts/**
|
||||||
|
# draft: true
|
||||||
|
|
||||||
|
publish-web:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -26,57 +65,19 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
run: docker build -t chad-client -f ./client/Dockerfile.web ./client --build-arg COMMIT_SHA=${{ gitea.sha }} --build-arg API_BASE_URL=${{ vars.API_BASE_URL }}
|
||||||
|
|
||||||
|
- name: Stop old container
|
||||||
|
run: docker rm -f chad-client || true
|
||||||
|
|
||||||
|
- name: Run
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker run -d \
|
||||||
-t chad-client-windows-builder \
|
--name chad-client \
|
||||||
-f ./client/Dockerfile.windows \
|
--network traefik \
|
||||||
./client \
|
--label "traefik.enable=true" \
|
||||||
--build-arg COMMIT_SHA=${{ gitea.sha }} \
|
--label "traefik.http.routers.chad-client.rule=Host(\`chad.koptilnya.xyz\`)" \
|
||||||
--build-arg API_BASE_URL=${{ vars.API_BASE_URL }} \
|
--label "traefik.http.routers.chad-client.entrypoints=websecure" \
|
||||||
--build-arg TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
--label "traefik.http.routers.chad-client.tls.certresolver=myresolver" \
|
||||||
|
--label "traefik.http.services.chad-client.loadbalancer.server.port=80" \
|
||||||
docker create --name chad-client-windows-container chad-client-windows-builder
|
chad-client:latest
|
||||||
mkdir -p artifacts
|
|
||||||
docker cp chad-client-windows-container:/artifacts artifacts/
|
|
||||||
docker rm chad-client-windows-container
|
|
||||||
ls -la artifacts
|
|
||||||
|
|
||||||
- name: Publish
|
|
||||||
uses: akkuman/gitea-release-action@v1
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
artifacts/**
|
|
||||||
draft: true
|
|
||||||
|
|
||||||
# publish-web:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - name: Keyscan
|
|
||||||
# run: |
|
|
||||||
# ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
# - name: Checkout
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
# ssh-strict: false
|
|
||||||
# persist-credentials: false
|
|
||||||
|
|
||||||
# - name: Build
|
|
||||||
# run: docker build -t chad-client -f ./client/Dockerfile.web ./client --build-arg COMMIT_SHA=${{ gitea.sha }} --build-arg API_BASE_URL=${{ vars.API_BASE_URL }}
|
|
||||||
|
|
||||||
# - name: Stop old container
|
|
||||||
# run: docker rm -f chad-client || true
|
|
||||||
|
|
||||||
# - name: Run
|
|
||||||
# run: |
|
|
||||||
# docker run -d \
|
|
||||||
# --name chad-client \
|
|
||||||
# --network traefik \
|
|
||||||
# --label "traefik.enable=true" \
|
|
||||||
# --label "traefik.http.routers.chad-client.rule=Host(\`chad.koptilnya.xyz\`)" \
|
|
||||||
# --label "traefik.http.routers.chad-client.entrypoints=websecure" \
|
|
||||||
# --label "traefik.http.routers.chad-client.tls.certresolver=myresolver" \
|
|
||||||
# --label "traefik.http.services.chad-client.loadbalancer.server.port=80" \
|
|
||||||
# chad-client:latest
|
|
||||||
|
|||||||
2
client/app/components.d.ts
vendored
2
client/app/components.d.ts
vendored
@@ -13,12 +13,10 @@ declare module 'vue' {
|
|||||||
PrimeButton: typeof import('primevue/button')['default']
|
PrimeButton: typeof import('primevue/button')['default']
|
||||||
PrimeButtonGroup: typeof import('primevue/buttongroup')['default']
|
PrimeButtonGroup: typeof import('primevue/buttongroup')['default']
|
||||||
PrimeCard: typeof import('primevue/card')['default']
|
PrimeCard: typeof import('primevue/card')['default']
|
||||||
PrimeCheckbox: typeof import('primevue/checkbox')['default']
|
|
||||||
PrimeDivider: typeof import('primevue/divider')['default']
|
PrimeDivider: typeof import('primevue/divider')['default']
|
||||||
PrimeFloatLabel: typeof import('primevue/floatlabel')['default']
|
PrimeFloatLabel: typeof import('primevue/floatlabel')['default']
|
||||||
PrimeInputText: typeof import('primevue/inputtext')['default']
|
PrimeInputText: typeof import('primevue/inputtext')['default']
|
||||||
PrimeMenu: typeof import('primevue/menu')['default']
|
PrimeMenu: typeof import('primevue/menu')['default']
|
||||||
PrimePanel: typeof import('primevue/panel')['default']
|
|
||||||
PrimePassword: typeof import('primevue/password')['default']
|
PrimePassword: typeof import('primevue/password')['default']
|
||||||
PrimeProgressBar: typeof import('primevue/progressbar')['default']
|
PrimeProgressBar: typeof import('primevue/progressbar')['default']
|
||||||
PrimeScrollPanel: typeof import('primevue/scrollpanel')['default']
|
PrimeScrollPanel: typeof import('primevue/scrollpanel')['default']
|
||||||
|
|||||||
Reference in New Issue
Block a user