🐛 Fix the issue of release publishing docker
This commit is contained in:
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
@@ -24,25 +24,24 @@ jobs:
|
|||||||
update-contributors:
|
update-contributors:
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Update Contributors in README.md
|
- name: Update Contributors in README.md
|
||||||
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
||||||
with:
|
with:
|
||||||
image_size: 90
|
image_size: 90
|
||||||
columns_per_row: 7
|
columns_per_row: 7
|
||||||
readme_path: README.md
|
auto_detect_branch_protection: false
|
||||||
use_username: false
|
|
||||||
collaborators: direct
|
|
||||||
commit_message: docs(contributor): contrib-readme-action has updated README.md
|
|
||||||
auto_detect_branch_protection: true
|
|
||||||
pr_title_on_protected: docs(contributor): contributors readme action update
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update Contributors in README_CN.md
|
- name: Update Contributors in README_CN.md
|
||||||
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
||||||
@@ -50,13 +49,9 @@ jobs:
|
|||||||
image_size: 90
|
image_size: 90
|
||||||
columns_per_row: 7
|
columns_per_row: 7
|
||||||
readme_path: README_CN.md
|
readme_path: README_CN.md
|
||||||
use_username: false
|
auto_detect_branch_protection: false
|
||||||
collaborators: direct
|
|
||||||
commit_message: docs(contributor): contrib-readme-action has updated README_CN.md
|
|
||||||
auto_detect_branch_protection: true
|
|
||||||
pr_title_on_protected: docs(contributor): contributors readme action update
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update Contributors in README_JP.md
|
- name: Update Contributors in README_JP.md
|
||||||
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
||||||
@@ -64,13 +59,9 @@ jobs:
|
|||||||
image_size: 90
|
image_size: 90
|
||||||
columns_per_row: 7
|
columns_per_row: 7
|
||||||
readme_path: README_JP.md
|
readme_path: README_JP.md
|
||||||
use_username: false
|
auto_detect_branch_protection: false
|
||||||
collaborators: direct
|
|
||||||
commit_message: docs(contributor): contrib-readme-action has updated README_JP.md
|
|
||||||
auto_detect_branch_protection: true
|
|
||||||
pr_title_on_protected: docs(contributor): contributors readme action update
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Build and release popular apps
|
# Build and release popular apps
|
||||||
release-apps:
|
release-apps:
|
||||||
@@ -144,6 +135,5 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
no-cache: true
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1.4
|
# syntax=docker/dockerfile:1.4
|
||||||
# Cargo build stage
|
# Cargo build stage - Updated to Rust 1.82 for zerovec dependency compatibility
|
||||||
FROM rust:1.82-slim AS cargo-builder
|
FROM rust:1.82-slim AS cargo-builder
|
||||||
# Install Rust dependencies
|
# Install Rust dependencies
|
||||||
RUN --mount=type=cache,target=/var/cache/apt \
|
RUN --mount=type=cache,target=/var/cache/apt \
|
||||||
@@ -9,6 +9,10 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
|||||||
libwebkit2gtk-4.1-dev build-essential curl wget libssl-dev \
|
libwebkit2gtk-4.1-dev build-essential curl wget libssl-dev \
|
||||||
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
|
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
|
||||||
gnome-video-effects
|
gnome-video-effects
|
||||||
|
|
||||||
|
# Verify Rust version
|
||||||
|
RUN rustc --version && echo "Rust version verified"
|
||||||
|
|
||||||
COPY . /pake
|
COPY . /pake
|
||||||
WORKDIR /pake/src-tauri
|
WORKDIR /pake/src-tauri
|
||||||
# Build cargo packages and store cache
|
# Build cargo packages and store cache
|
||||||
@@ -33,6 +37,9 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
|||||||
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
|
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
|
||||||
gnome-video-effects
|
gnome-video-effects
|
||||||
|
|
||||||
|
# Verify Rust version in builder stage
|
||||||
|
RUN rustc --version && echo "Builder stage Rust version verified"
|
||||||
|
|
||||||
# Install Node.js 22.x
|
# Install Node.js 22.x
|
||||||
RUN --mount=type=cache,target=/var/cache/apt \
|
RUN --mount=type=cache,target=/var/cache/apt \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
||||||
|
|||||||
Reference in New Issue
Block a user