44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: nginx-build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "nginx/**"
|
|
- ".github/workflows/nginx.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "nginx/**"
|
|
- ".github/workflows/nginx.yml"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Login to AUVEM Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.auvem.com
|
|
username: ${{ vars.REGISTRY_USER || github.actor }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./nginx/Dockerfile
|
|
tags: |
|
|
gitea.auvem.com/auvem/wordpress-docker/auvem-nginx:latest
|
|
gitea.auvem.com/auvem/wordpress-docker/auvem-nginx:${{ github.sha }}
|
|
push: true
|