Skip to content

Update redhat/ubi9 Docker tag to v9.7-1774415752 (main) (#9417) #109

Update redhat/ubi9 Docker tag to v9.7-1774415752 (main) (#9417)

Update redhat/ubi9 Docker tag to v9.7-1774415752 (main) (#9417) #109

name: Build UBI c-ares Dependency
on:
push:
branches:
- main
paths:
- build/dependencies/Dockerfile.ubi8
- build/dependencies/Dockerfile.ubi9
- .github/workflows/build-ubi-dependency.yml
workflow_dispatch:
env:
IMAGE_NAME: ghcr.io/nginx/dependencies/nginx-ubi
concurrency:
group: ${{ github.ref_name }}-ubi-build
cancel-in-progress: true
permissions:
contents: read
jobs:
build-binaries:
name: Build Binary Container Image
runs-on: ubuntu-24.04
permissions:
packages: write
contents: read
strategy:
fail-fast: false
matrix:
tag: ["ubi8", "ubi9"]
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
with:
platforms: arm64
- name: Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
with:
images: |
name=${{ env.IMAGE_NAME }},enable=true
tags: |
type=raw,value=${{ matrix.tag }},enable=true
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Build and push
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
with:
file: ./build/dependencies/Dockerfile.${{ matrix.tag }}
context: "."
pull: true
push: true
platforms: "linux/amd64,linux/arm64"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha,scope=nginx-${{ matrix.tag }}
cache-to: type=gha,scope=nginx-${{ matrix.tag }},mode=max
target: final
sbom: false
provenance: mode=max