Build(deps): Bump jinja2 from 3.1.3 to 3.1.5 in /agnosticv-operator #1463
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: workshop-manager-publish | |
on: | |
push: | |
branches-ignore: | |
- '*' | |
tags: | |
- 'workshop-manager-v[0-9]*' | |
jobs: | |
publish: | |
env: | |
IMAGE_NAME: babylon-workshop-manager | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- 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/admin-v0.1.2" or "refs/tags/admin-v0.1.2-1" | |
# To determine RELEASE, strip off the leading "refs/tags/" | |
RELEASE=${GITHUB_REF#refs/tags/workshop-manager-} | |
# 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,v0.1.2,v0.1 | |
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@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }} | |
tags: ${{ steps.image_tags.outputs.IMAGE_TAGS }} | |
context: workshop-manager | |
containerfiles: workshop-manager/Containerfile | |
- name: Push image to registry | |
id: push-to-registry | |
if: steps.image_tags.outputs.IMAGE_TAGS | |
uses: redhat-actions/push-to-registry@v2 | |
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 }} |