3 Commits

Author SHA1 Message Date
花菜
8f63916155 Merge 78c7f255ec into cde5ff7851 2025-04-04 19:55:07 +08:00
Anduin Xue
cde5ff7851 Update 鸡蛋火腿炒黄瓜.md
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-04-04 05:58:19 +00:00
花菜
78c7f255ec chore: 更新 GitHub Actions 工作流,添加 Docker Buildx 支持并构建多架构 Docker 镜像 2025-03-25 17:20:30 +00:00
2 changed files with 24 additions and 13 deletions

View File

@@ -3,6 +3,8 @@ name: Continuous Deployment
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build-readme-file:
@@ -35,7 +37,12 @@ jobs:
steps:
# Checkout, install tools..
- uses: actions/checkout@v2
# Use docker to build current directory ./Dockfile
# 设置Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
@@ -43,7 +50,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Docker image
run: |
docker build . --tag ghcr.io/anduin2017/how-to-cook:latest
docker push ghcr.io/anduin2017/how-to-cook:latest
# 构建并推送多架构Docker镜像
- name: Build and push multi-arch Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository }}:latest

View File

@@ -7,7 +7,6 @@
- 黄瓜
- 鸡蛋
- 火腿肠
- 食用油
-
- 生抽
- 红尖椒(可选)
@@ -18,18 +17,18 @@
每份:
- 黄瓜 = 1 根(约 200g
- 鸡蛋 = 2 个
- 火腿肠 = 1 根(约 40g
- 红尖椒 = 1 个
- 食用油 = 10ml
- 黄瓜 1 根(约 200g
- 鸡蛋 2 个
- 火腿肠 1 根(约 40g
- 红尖椒 1 个(可选)
- 食用油 10ml
- 生抽 3ml
- 盐 2g
## 操作
- 黄瓜洗净,切半圆形,备用
- 火腿切半圆形,备用
- 黄瓜洗净,切半圆形,备用
- 火腿切半圆形,备用
- 红尖椒(可选)切碎,备用
- 将鸡蛋打入碗中,搅匀,即为 `鸡蛋液`
- 热锅里倒 5ml 食用油