From e8ef250a0f35a8ad36d915f07084db7b2e19f842 Mon Sep 17 00:00:00 2001 From: huanghs Date: Fri, 20 Dec 2024 16:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/nginx.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/nginx.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/nginx.yml b/.gitea/workflows/nginx.yml index 6276b65..900c033 100644 --- a/.gitea/workflows/nginx.yml +++ b/.gitea/workflows/nginx.yml @@ -1,8 +1,7 @@ - name: Nginx on: [push] jobs: - build-docker: + build-1_25: runs-on: ubuntu-latest steps: - run: echo "FROM nginx:1.25-alpine-slim" > Dockerfile @@ -17,4 +16,21 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} tags: git.zgfxrc.cn/registry/nginx:1.25-alpine-slim + - run: echo Success. + + build-1_27: + runs-on: ubuntu-latest + steps: + - run: echo "FROM nginx:1.27-alpine-slim" > Dockerfile + + - name: Docker build push + uses: seepine/action-docker-build-push@v1 + with: + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + registry: git.zgfxrc.cn + username: registry + password: ${{ secrets.DOCKER_PASSWORD }} + tags: git.zgfxrc.cn/registry/nginx:1.27-alpine-slim + - run: echo Success. \ No newline at end of file