This commit is contained in:
@@ -12,7 +12,7 @@ on:
|
|||||||
- "client/**"
|
- "client/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-tauri:
|
publish-windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -28,37 +28,37 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: docker build -t chad-client -f ./client/Dockerfile.windows ./client --build-arg COMMIT_SHA=${{ gitea.sha }} --build-arg API_BASE_URL=${{ vars.API_BASE_URL }}
|
run: docker build -t chad-client-windows -f ./client/Dockerfile.windows ./client --build-arg COMMIT_SHA=${{ gitea.sha }} --build-arg API_BASE_URL=${{ vars.API_BASE_URL }}
|
||||||
|
|
||||||
publish-web:
|
# publish-web:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Keyscan
|
# - name: Keyscan
|
||||||
run: |
|
# run: |
|
||||||
ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
|
# ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ssh-strict: false
|
# ssh-strict: false
|
||||||
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 }}
|
# 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
|
# - name: Stop old container
|
||||||
run: docker rm -f chad-client || true
|
# run: docker rm -f chad-client || true
|
||||||
|
|
||||||
- name: Run
|
# - name: Run
|
||||||
run: |
|
# run: |
|
||||||
docker run -d \
|
# docker run -d \
|
||||||
--name chad-client \
|
# --name chad-client \
|
||||||
--network traefik \
|
# --network traefik \
|
||||||
--label "traefik.enable=true" \
|
# --label "traefik.enable=true" \
|
||||||
--label "traefik.http.routers.chad-client.rule=Host(\`chad.koptilnya.xyz\`)" \
|
# --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.entrypoints=websecure" \
|
||||||
--label "traefik.http.routers.chad-client.tls.certresolver=myresolver" \
|
# --label "traefik.http.routers.chad-client.tls.certresolver=myresolver" \
|
||||||
--label "traefik.http.services.chad-client.loadbalancer.server.port=80" \
|
# --label "traefik.http.services.chad-client.loadbalancer.server.port=80" \
|
||||||
chad-client:latest
|
# chad-client:latest
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ RUN apt install -y curl unzip
|
|||||||
|
|
||||||
RUN curl -o- https://fnm.vercel.app/install | bash
|
RUN curl -o- https://fnm.vercel.app/install | bash
|
||||||
|
|
||||||
RUN source /root/.bashrc
|
RUN ~/.local/share/fnm/fnm install 24
|
||||||
|
|
||||||
RUN fnm install 24
|
|
||||||
|
|
||||||
RUN corepack enable yarn
|
RUN corepack enable yarn
|
||||||
RUN yarn set version stable
|
RUN yarn set version stable
|
||||||
|
|||||||
Reference in New Issue
Block a user