更新 .gitea/workflows/nginx.yml
All checks were successful
Nginx / build-1_27 (push) Successful in 1m18s
Nginx / build-docker (push) Successful in 1m39s
Nginx / build-1_25 (push) Successful in 56s
Redis / build-docker (push) Successful in 54s

This commit is contained in:
huanghs 2024-12-20 16:51:52 +08:00
parent bfbd82685b
commit e8ef250a0f

View File

@ -1,8 +1,7 @@
name: Nginx name: Nginx
on: [push] on: [push]
jobs: jobs:
build-docker: build-1_25:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "FROM nginx:1.25-alpine-slim" > Dockerfile - run: echo "FROM nginx:1.25-alpine-slim" > Dockerfile
@ -17,4 +16,21 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
tags: git.zgfxrc.cn/registry/nginx:1.25-alpine-slim 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. - run: echo Success.