Skip to content

Docker Image Nginx #537

Docker Image Nginx

Docker Image Nginx #537

Workflow file for this run

name: Docker Image Nginx
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *" # 6 AM Daily
push:
paths:
- nginx/**
- .github/workflows/nginx.yml
jobs:
nginx:
name: Nginx
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- "1.16"
- "1.17"
- "1.18"
- "1.19"
- "1.20"
- "1.21"
- "1.22"
- "1.23"
- "1.24"
- "1.25"
- "1.26"
- "1.27"
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !env.ACT }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ !env.ACT }}
- uses: docker/build-push-action@v3
with:
context: nginx
platforms: linux/amd64,linux/arm64
build-args: NGINX_VERSION=${{ matrix.version }}
push: ${{ github.ref == 'refs/heads/main' && !env.ACT }}
tags: ghcr.io/${{ github.repository_owner }}/nginx:${{ matrix.version }},wardenenv/nginx:${{matrix.version}}