Skip to content

Commit

Permalink
PM-1566 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Smorci committed Jun 12, 2024
1 parent de42c81 commit e070506
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- PM-1566-reconfigure-ci-keel
workflow_dispatch:
inputs:
docker_tag_suffix:
Expand All @@ -30,10 +31,12 @@ jobs:

- name: 🏷️ Generate Tag
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ "${{ github.event.inputs.docker_tag_suffix" != "" ]; then
echo "TAG=${{ steps.application-version.outputs.current-version }}-${{ github.event.inputs.docker_tag_suffix }}" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ "${{ github.event.inputs.docker_tag_suffix" == "" ]; then
echo "TAG=${{ steps.application-version.outputs.current-version }}" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ "${{ github.event.inputs.docker_tag_suffix" != "" ]; then
echo "TAG=${{ steps.application-version.outputs.current-version }}-${{ github.event.inputs.docker_tag_suffix }}" >> $GITHUB_ENV
else
echo "TAG=${{ steps.application-version.outputs.current-version }}" >> $GITHUB_ENV
fi
elif [ "${{ github.event_name }}" == "push" ] && [ -n "${{ github.event.ref }}" ]; then
echo "TAG=${{ steps.application-version.outputs.current-version }}" >> $GITHUB_ENV
else
Expand Down

0 comments on commit e070506

Please sign in to comment.