Skip to content

Commit

Permalink
fix tag output
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Jul 8, 2024
1 parent f93a759 commit 8feb508
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-single-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ on:
description: 'Whether the image is rebuilt or not'
value: ${{ jobs.check.outputs.rebuild }}
image_tags:
description: 'Tags of the deployed image'
description: 'Tags of the deployed image with image name'
value: ${{ jobs.build-and-push.outputs.image_tags }}
one_image_tag:
description: 'One tag of the deployed image'
description: 'One tag of the deployed image without image name'
value: ${{ jobs.build-and-push.outputs.one_image_tag }}
secrets:
SA_GITHUB_PAT:
Expand Down Expand Up @@ -225,6 +225,8 @@ jobs:
run: |
import os
tags = "${{ steps.meta.outputs.tags }}".split(",")
for t in tags:
t = t.split(":")[-1]
if len(tags) == 0:
print("No tags found!❌")
exit(1)
Expand Down

0 comments on commit 8feb508

Please sign in to comment.