Skip to content

Commit 974bc28

Browse files
committed
🐛 Fix the issue of release publishing docker
1 parent 1c62b2d commit 974bc28

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,53 +24,44 @@ jobs:
2424
update-contributors:
2525
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
2626
runs-on: ubuntu-latest
27+
permissions:
28+
contents: write
29+
pull-requests: write
2730
steps:
2831
- name: Checkout
2932
uses: actions/checkout@v4
3033
with:
31-
token: ${{ secrets.TOKEN }}
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
fetch-depth: 0
3236

3337
- name: Update Contributors in README.md
3438
uses: akhilmhdh/[email protected]
3539
with:
3640
image_size: 90
3741
columns_per_row: 7
38-
readme_path: README.md
39-
use_username: false
40-
collaborators: direct
41-
commit_message: docs(contributor): contrib-readme-action has updated README.md
42-
auto_detect_branch_protection: true
43-
pr_title_on_protected: docs(contributor): contributors readme action update
42+
auto_detect_branch_protection: false
4443
env:
45-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4645

4746
- name: Update Contributors in README_CN.md
4847
uses: akhilmhdh/[email protected]
4948
with:
5049
image_size: 90
5150
columns_per_row: 7
5251
readme_path: README_CN.md
53-
use_username: false
54-
collaborators: direct
55-
commit_message: docs(contributor): contrib-readme-action has updated README_CN.md
56-
auto_detect_branch_protection: true
57-
pr_title_on_protected: docs(contributor): contributors readme action update
52+
auto_detect_branch_protection: false
5853
env:
59-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6055

6156
- name: Update Contributors in README_JP.md
6257
uses: akhilmhdh/[email protected]
6358
with:
6459
image_size: 90
6560
columns_per_row: 7
6661
readme_path: README_JP.md
67-
use_username: false
68-
collaborators: direct
69-
commit_message: docs(contributor): contrib-readme-action has updated README_JP.md
70-
auto_detect_branch_protection: true
71-
pr_title_on_protected: docs(contributor): contributors readme action update
62+
auto_detect_branch_protection: false
7263
env:
73-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7465

7566
# Build and release popular apps
7667
release-apps:
@@ -144,6 +135,5 @@ jobs:
144135
push: true
145136
tags: ${{ steps.meta.outputs.tags }}
146137
labels: ${{ steps.meta.outputs.labels }}
147-
cache-from: type=gha
148-
cache-to: type=gha,mode=max
138+
no-cache: true
149139
platforms: linux/amd64

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
# Cargo build stage
2+
# Cargo build stage - Updated to Rust 1.82 for zerovec dependency compatibility
33
FROM rust:1.82-slim AS cargo-builder
44
# Install Rust dependencies
55
RUN --mount=type=cache,target=/var/cache/apt \
@@ -9,6 +9,10 @@ RUN --mount=type=cache,target=/var/cache/apt \
99
libwebkit2gtk-4.1-dev build-essential curl wget libssl-dev \
1010
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
1111
gnome-video-effects
12+
13+
# Verify Rust version
14+
RUN rustc --version && echo "Rust version verified"
15+
1216
COPY . /pake
1317
WORKDIR /pake/src-tauri
1418
# Build cargo packages and store cache
@@ -33,6 +37,9 @@ RUN --mount=type=cache,target=/var/cache/apt \
3337
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
3438
gnome-video-effects
3539

40+
# Verify Rust version in builder stage
41+
RUN rustc --version && echo "Builder stage Rust version verified"
42+
3643
# Install Node.js 22.x
3744
RUN --mount=type=cache,target=/var/cache/apt \
3845
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \

0 commit comments

Comments
 (0)