Skip to content

Commit

Permalink
fix(pipeline): set correct image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
RouHim committed Jan 16, 2023
1 parent 5f5a151 commit 53de2a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ env:
jobs:
# Use latest for main and PR number for the "ticket" string as prefix for PRs
set_image_tag:
name: Set image tag
runs-on: ubuntu-latest
steps:
- name: Set image tag
run: |
if [ -z "${{github.event.pull_request.number}}" ]; then
echo "::set-env name=IMAGE_TAG::latest"
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
else
echo "::set-env name=IMAGE_TAG::PR${{github.event.pull_request.number}}"
echo "IMAGE_TAG=PR-${{github.event.pull_request.number}}" >> $GITHUB_ENV
fi
check-oci-config:
Expand Down

0 comments on commit 53de2a4

Please sign in to comment.