Skip to content

Build(deps-dev): Bump eslint from 10.5.0 to 10.6.0 in /catalog/ui #2006

Build(deps-dev): Bump eslint from 10.5.0 to 10.6.0 in /catalog/ui

Build(deps-dev): Bump eslint from 10.5.0 to 10.6.0 in /catalog/ui #2006

---
name: agnosticv-operator-publish
on:
push:
branches-ignore:
- '*'
tags:
- 'agnosticv-operator-v*'
permissions:
contents: read
jobs:
publish:
env:
IMAGE_NAME: babylon-agnosticv-operator
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Get image tags
id: image_tags
run: |
# Version is a semantic version tag or semantic version with release number
# GITHUB_REF will be of the form "refs/tags/agnosticv-operator-v1.0.0" or "refs/tags/agnosticv-operator-v1.0.0-1"
# To determine RELEASE, strip off the leading "refs/tags/"
RELEASE=${GITHUB_REF#refs/tags/agnosticv-operator-}
# To determine VERSION, strip off any release number suffix
VERSION=${RELEASE/-*/}
# Only build image if version tag without release number
# Releases indicate a change in the repository that should not trigger a new build.
if [[ "${VERSION}" == "${RELEASE}" ]]; then
# Publish to latest, minor, and patch tags
# Ex: latest,v1.2,v1.2.3
echo "IMAGE_TAGS=latest ${VERSION%.*} ${VERSION}" >> $GITHUB_OUTPUT
fi
- name: Buildah Action
id: buildah-build
if: steps.image_tags.outputs.IMAGE_TAGS
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ steps.image_tags.outputs.IMAGE_TAGS }}
context: agnosticv-operator
containerfiles: agnosticv-operator/Containerfile
- name: Push image to registry
id: push-to-registry
if: steps.image_tags.outputs.IMAGE_TAGS
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
with:
image: ${{ steps.buildah-build.outputs.image }}
tags: ${{ steps.buildah-build.outputs.tags }}
registry: ${{ vars.BABYLON_IMAGE_REGISTRY }}/${{ vars.BABYLON_IMAGE_REPOSITORY }}
username: ${{ secrets.BABYLON_IMAGE_REGISTRY_USERNAME }}
password: ${{ secrets.BABYLON_IMAGE_REGISTRY_PASSWORD }}