Files
wordpress-docker/.github/workflows/nginx.yml
Elijah Duffy 502f936db1
Some checks failed
nginx-build / build (push) Failing after 2m55s
nginx: fix push, checkout, file context
2025-12-07 23:10:57 -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/auvem-nginx:latest
gitea.auvem.com/auvem/wordpress-docker/auvem-nginx:${{ github.sha }}
push: true