更新 .gitea/workflows/nginx.yml
This commit is contained in:
parent
bfbd82685b
commit
e8ef250a0f
@ -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.
|
Loading…
x
Reference in New Issue
Block a user