Skip to content

Commit

Permalink
push on tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi418 committed Jan 23, 2024
1 parent ee04ead commit e8e9521
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-and-push-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Build and push Docker Image on Tag

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9].*'
jobs:
pre_build:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
suffix: ${{ steps.tag.outputs.suffix }}
steps:
- name: Filter Tag name
uses: olegtarasov/[email protected]
id: tag
with:
tagRegex: "(?<tag>[0-9]+.[0-9]+.[0-9])(?<suffix>.*)"
build_and_push:
needs: pre_build
uses: hpi-schul-cloud/infra-tools/.github/workflows/build-and-push.yaml@master
with:
registry: ghcr.io
image: dbildungsplattform/cachet
tag: ${{ needs.pre_build.outputs.tag }}
suffix: ${{ needs.pre_build.outputs.suffix }}

0 comments on commit e8e9521

Please sign in to comment.