Skip to content

chore(deps): update registry.access.redhat.com/ubi9/ubi-minimal docker digest to daa61d6 #22

chore(deps): update registry.access.redhat.com/ubi9/ubi-minimal docker digest to daa61d6

chore(deps): update registry.access.redhat.com/ubi9/ubi-minimal docker digest to daa61d6 #22

name: Build renovate image
on:
push:
branches:
- main
paths:
- renovate/Dockerfile
pull_request:
branches:
- main
paths:
- renovate/Dockerfile
env:
REGISTRY: quay.io/redhat-appstudio
IMAGE_NAME: renovate
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract version from Dockerfile
id: extract-version
run: echo "version=$(grep -oP '(?<=ARG version=)[^"]*' renovate/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: v${{ steps.extract-version.outputs.version }}
context: ./renovate
containerfiles: |
./renovate/Dockerfile
- name: Push to Quay
if: github.event_name == 'push' # don't push image from PR
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}