Skip to content

fix: 修改docker文件,解决字符编码问题 #100

fix: 修改docker文件,解决字符编码问题

fix: 修改docker文件,解决字符编码问题 #100

Workflow file for this run

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 }}
cancel-in-progress: true
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
jobs:
build-desktop:
strategy:
fail-fast: false
matrix:
platform:
- alpine
- debian
node:
- 14
- 16
- 18
name: build node-desktop:${{ matrix.node }}-${{ matrix.platform }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
# 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 }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./docker
file: ./docker/${{ matrix.platform }}.Dockerfile
push: ${{ github.event_name != 'pull_request' }}
build-args: |
VERSION=${{ matrix.node }}
tags: ${{ env.REGISTRY }}/${{ github.repository }}/node-desktop:${{ matrix.node }}-${{ matrix.platform }}