Skip to content

Commit

Permalink
fix: 修复CI报错 (#39)
Browse files Browse the repository at this point in the history
0.2.0
  • Loading branch information
nashaofu authored May 1, 2024
1 parent 4ee0238 commit 75f326e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: docker-publish

on:
workflow_dispatch: # 手动触发
push:
branches: ["master"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["master"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -45,7 +39,6 @@ jobs:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -59,7 +52,7 @@ jobs:
with:
context: ./docker
file: ./docker/${{ matrix.platform }}.Dockerfile
push: ${{ github.event_name != 'pull_request' }}
push: true
build-args: |
VERSION=${{ matrix.node }}
tags: ${{ env.REGISTRY }}/${{ github.repository }}/node-desktop:${{ matrix.node }}-${{ matrix.platform }}
2 changes: 2 additions & 0 deletions .github/workflows/napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ jobs:
fail-fast: false
matrix:
settings:
- host: macos-13
target: x86_64-apple-darwin
- host: macos-latest
target: aarch64-apple-darwin
- host: windows-latest
Expand Down
4 changes: 2 additions & 2 deletions docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VERSION="18"
ARG VERSION="16"

FROM node:${VERSION}-alpine

Expand All @@ -8,7 +8,7 @@ ENV DISPLAY=":0" \
DISPLAY_HEIGHT="720"

RUN apk update && \
apk add xvfb xfce4 libxcb libxrandr
apk add procps xvfb xfce4 dbus-x11 libxcb libxrandr

COPY alpine-init.sh /usr/local/share/alpine-init.sh

Expand Down
4 changes: 2 additions & 2 deletions docker/debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VERSION="18"
ARG VERSION="16"

FROM node:${VERSION}-slim

Expand All @@ -9,7 +9,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
DISPLAY_HEIGHT="720"

RUN apt-get update && \
apt-get -y install --no-install-recommends xvfb xfce4 dbus-x11 libxcb1 libxrandr2 && \
apt-get -y install --no-install-recommends procps xvfb xfce4 dbus-x11 libxcb1 libxrandr2 && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 75f326e

Please sign in to comment.