Skip to content

Commit

Permalink
ci(patch): fix image tag
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <simone.ragonesi@sighup.io>
  • Loading branch information
R3DRUN3 committed Apr 18, 2024
1 parent de04fbb commit b137336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
run: |
TAG=$(echo "${{ matrix.target }}" | grep -oP '(?<=:).*' | grep -oP '^[^/]+')
IMMUNIZED_TAG="${TAG}"
PATCHED_TAG_SBOM=$(echo "${{matrix.target}}" | tr '/:' '-')
IMAGE_NAME=$(echo "${{ matrix.target }}" | sed -E 's|^.+/([^:/]+).*|\1|')
PATCHED_TAG_SBOM=$(echo "${{ matrix.target }}" | tr '/:' '-')
IMAGE_NAME=$(echo "${{ matrix.target }}" | sed -E 's|.*/([^:/]+).*|\1|')
echo "PATCHED_TAG=${IMMUNIZED_TAG}" >> $GITHUB_ENV
echo "PATCHED_TAG_SBOM=${PATCHED_TAG_SBOM}" >> $GITHUB_ENV
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
Expand Down

0 comments on commit b137336

Please sign in to comment.