Skip to content

Build container: nginx #315

Build container: nginx

Build container: nginx #315

Workflow file for this run

name: "Build container: nginx"
env:
NAME: "nginx"
REGISTRY: "quay.io/travier"
on:
pull_request:
branches:
- "main"
paths:
- "nginx/**"
- ".github/workflows/nginx.yml"
push:
branches:
- "main"
paths:
- "nginx/**"
- ".github/workflows/nginx.yml"
schedule:
- cron: "0 0 * * MON"
workflow_dispatch:
permissions: "read-all"
# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-push-image:
runs-on: "ubuntu-24.04"
container:
image: "quay.io/travier/podman-action"
options: "--security-opt=label=disable --privileged --user 0:0 --device=/dev/kvm --device=/dev/fuse"
steps:
- name: "Checkout repo"
uses: actions/checkout@v6
- name: "Build and push container image"
uses: ./.github/actions/build-push
with:
name: ${{ env.NAME }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.BOT_USERNAME }}
password: ${{ secrets.BOT_SECRET }}
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}