Skip to content

Docker Image CI Test #1

Docker Image CI Test

Docker Image CI Test #1

Workflow file for this run

name: Docker Image CI Test
on:
workflow_dispatch: # 允许手动触发工作流
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
os: [linux]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }} # 使用当前 GitHub 用户名
password: ${{ secrets.CR_TOKEN }} # 使用您刚刚添加的个人访问令牌
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile_frontend
push: true
tags: ghcr.io/lightislost/ekgfrontend:0.1.0
platforms: ${{ matrix.os }}/${{ matrix.architecture }}