Skip to content

Commit

Permalink
build(trident): sanitize image name when exporting
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed Oct 25, 2024
1 parent ab84f8b commit 621e50e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/trident.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Trident Build

on:
push:
paths:
- "trident-distrowith/**"
# paths:
# - "trident-distrowith/**"
pull_request:
paths:
- "trident-distrowith/**"
# paths:
# - "trident-distrowith/**"

jobs:
build:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
mkdir -p /tmp/docker-images/
docker image ls --format=json | \
jq -s '[.[] | select(.Repository | test("ghcr.io/postfinance/trident.*"))] | unique_by(.ID) |.[] | .Repository + ":" + .Tag' | \
xargs -I_ docker save _ -o /tmp/docker-images/_.tar
xargs -I_ sh -c 'docker save _ -o /tmp/docker-images/$(echo _ | sed "s|[/:\.]|-|g").tar'
- name: Upload docker images artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 621e50e

Please sign in to comment.