From 2259e1116c9615a4ed6a89241543a61670463cc1 Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 29 Nov 2024 23:12:10 +0100 Subject: [PATCH] fix: update Dockerfile and GitHub Actions workflow Update the CMD instruction in the Dockerfile to target main.js instead of main-*.js for better specificity. Modify the tag and release names in the GitHub Actions workflow to follow a consistent naming convention, ensuring clarity in versioning. --- .github/workflows/tauri-release.yml | 4 ++-- docker/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index 4f791e265..076f0eba5 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -61,8 +61,8 @@ jobs: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} with: - tagName: v__VERSION__-${{ matrix.platform }}${{ matrix.args != '' && format('-{0}', matrix.args) || '' }} - releaseName: "IPTVnator v__VERSION__ (${{ matrix.platform }}${{ matrix.args != '' && format(' {0}', matrix.args) || '' }})" + tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. + releaseName: 'App v__VERSION__' releaseBody: 'See the assets to download this version and install.' releaseDraft: true prerelease: false diff --git a/docker/Dockerfile b/docker/Dockerfile index 1d6311d75..5f50a53c5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -29,4 +29,4 @@ FROM nginx:stable-alpine COPY --from=build /usr/src/app/dist/ /usr/share/nginx/html COPY --from=build /usr/src/app/docker/nginx.conf /etc/nginx/conf.d/default.conf -CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main-*.js && nginx -g 'daemon off;' \ No newline at end of file +CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.js && nginx -g 'daemon off;' \ No newline at end of file