release test #7

Merged
opti1337 merged 24 commits from release into master 2025-12-23 14:51:49 +00:00
2 changed files with 30 additions and 32 deletions
Showing only changes of commit 6b5d669f64 - Show all commits

View File

@@ -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

View File

@@ -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