From 3e25962fdd40644dc438e687d7212619acf17886 Mon Sep 17 00:00:00 2001 From: xuthus Date: Tue, 16 Apr 2024 02:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..be9e180 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,25 @@ +name: littlePaimon +on: [push] + +# 工作流程,可包含多个作业 +jobs: + # 作业1名称 + littlePaimon-Gitea-Actions: + # 指定的运行器环境 + runs-on: node-lts + + # 作业包含一系列任务,称为 steps + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + #build镜像并push到中央仓库中 + - name: Build and push + id: docker_build + uses: docker/build-push-action@v5 + with: + context: ./ + file: ./dockerfile + push: true + tags: k2.xuthus83.cn:6001/littlepaimon:latest