Files
wordpress-docker/.github/workflows/nginx.yml
Elijah Duffy b28e490a86
All checks were successful
nginx-build / build (push) Successful in 43s
nginx: fix tag name
auvem-nginx -> nginx
2025-12-08 02:08:47 -08:00

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/nginx:latest
gitea.auvem.com/auvem/wordpress-docker/nginx:${{ github.sha }}
push: true