Skip to content

Image Builder and Pusher #90

Image Builder and Pusher

Image Builder and Pusher #90

Workflow file for this run

name: Image Builder and Pusher
on:
push:
branches:
- "main"
schedule:
- cron: "30 2 * * MON"
workflow_dispatch:
jobs:
deploy:
strategy:
fail-fast: false
matrix:
version: ["1", "1.26", "1.25", "latest", "stable"]
name: Build Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=raw,value=${{ matrix.version }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NGINX_VERSION=${{ matrix.version }}